-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
125 additions
and
166 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 |
---|---|---|
@@ -1,33 +1,4 @@ | ||
from typing import ( | ||
Any, | ||
Callable, | ||
Generic, | ||
NoReturn, | ||
Optional, | ||
overload, | ||
SupportsIndex, | ||
Type, | ||
TypeVar, | ||
Union as _UnionT, | ||
) | ||
|
||
# symbols those what might occur recursive imports in runtime. | ||
from comtypes.automation import IDispatch as IDispatch, VARIANT as VARIANT | ||
from comtypes.server import IClassFactory as IClassFactory | ||
from comtypes.typeinfo import ITypeInfo as ITypeInfo | ||
|
||
def AnnoField() -> Any: | ||
"""**THIS IS `TYPE_CHECKING` ONLY SYMBOL. | ||
This is workaround for class field type annotations for old | ||
python versions. | ||
Examples: | ||
# instead of class field annotation, like below | ||
class Foo: | ||
# spam: int # <- not available in old versions. | ||
if TYPE_CHECKING: | ||
spam = AnnoField() # type: int # <- available in old versions. | ||
""" | ||
... |
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
Oops, something went wrong.