-
Notifications
You must be signed in to change notification settings - Fork 752
Object identity, Interfaces and Attributes #2019
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
rmadsen-ks
wants to merge
15
commits into
pythonnet:master
from
rmadsen-ks:1776-InheritGenericVirtualMethodFix2
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
ab531f8
1776 Inherit Generic Virtual Method Bug: Unit Test
rmadsen-ks bfcf1d1
1776 Inherit Generic Virtual Method Bug: Fix
rmadsen-ks eb4ce37
1774-ClassWithoutnamespace
rmadsen-ks a2c80cd
better support for multiple inheritance
rmadsen-ks 65c2c00
Fixed issue with protected constructors and classes with no constructor
rmadsen-ks 28f4717
Added supporr for class/property/method attributes.
rmadsen-ks 014ef2e
- Expanded the way attributes amy be added
rmadsen-ks 2449bd2
added support for creating abstract classes using a __clr_abstract__ …
rmadsen-ks 7980fc4
Improved AttributeError when looking for a symbol that does not exist…
rmadsen-ks cf2c27a
Added test to detect an issue with object construction.
rmadsen-ks adc6613
Added support for marking properties with python types.
rmadsen-ks 9373a03
Fixed issue calling base-base class implementation of methods.
rmadsen-ks ab12481
Merged with Pythonnet 3.0 RC.6.
rmadsen-ks c290bf9
Merge branch 'master' of github.com:pythonnet/pythonnet into 1776-Inh…
rmadsen-ks bb988cd
Cleanup and comments
rmadsen-ks File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System; | ||
|
||
namespace Python.Runtime; | ||
|
||
/// <summary> | ||
/// Marks a property type with a specific python type. Normally, properties has .NET types, but if the property has a python type, | ||
/// that cannot be represented in the propert type info, so this attribute is used to mark the property with the corresponding python type. | ||
/// </summary> | ||
public class PythonTypeAttribute : Attribute | ||
{ | ||
/// <summary> Type name. </summary> E864 | ||
public string TypeName { get; } | ||
|
||
/// <summary> Importable module name. </summary> | ||
public string Module { get; } | ||
|
||
/// <summary> | ||
/// Creates a new instance of PythonTypeAttribute. | ||
/// </summary> | ||
/// <param name="pyTypeModule"></param> | ||
/// <param name="pyTypeName"></param> | ||
Comment on lines
+17
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This XML doc does not have any useful information. |
||
public PythonTypeAttribute(string pyTypeModule, string pyTypeName) | ||
{ | ||
TypeName = pyTypeName; | ||
Module = pyTypeModule; | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean up the history