Skip to content

Commit 1bbfc02

Browse files
Ever-Kidjunrushao
authored andcommitted
[Bugfix][TIR] Fix version conflict with typing for Python 3.8.0
1 parent da99e9d commit 1bbfc02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/tvm/tir/schedule/_type_checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def union(type_: Any) -> Optional[List[type]]: # pylint: disable=missing-functi
9898
@staticmethod
9999
def callable(type_: Any) -> Optional[List[type]]:
100100
if _Subtype._origin(type_) is collections.abc.Callable:
101-
if hasattr(typing, "get_args"):
101+
if hasattr(typing, "get_args") and not type_._special:
102102
subtypes = typing.get_args(type_) # type: ignore
103103
else:
104104
subtypes = type_.__args__

0 commit comments

Comments
 (0)