-
-
Notifications
You must be signed in to change notification settings - Fork 675
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: Fixed import issues with Python stub interface files.
Previously, some wrapped classes inherited from classes defined in a seperate file. These classes were not imported. This fix allows the classes to be imported without requiring each file to know the name of the file that the class is located in. All proxies are imported in the _proxies.pyi file which can then be imported by different template classes. The Proxy and Template classes were split to allow the leading underscore to be removed from the proxies without causing extra 'fake' classes to appear for the user.
- Loading branch information
1 parent
cff5823
commit 9f6a17f
Showing
5 changed files
with
67 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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 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 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,5 @@ | ||
# Python proxy import file | ||
# This file allows the wrapped classes (both templates and proxies) | ||
# to import proxy classes without exposing the Proxy classes to a user | ||
# This also allows the imports to be done in other files without knowing the classes file name | ||
${ITK_STUB_PROXY_IMPORTS} |
This file contains 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 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