Skip to content

Commit 09ecb3f

Browse files
committed
Suppress mypy errors
Directly interacting with a type object would otherwise cause some false positives.
1 parent f76ce64 commit 09ecb3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/tvm/tir/schedule/_type_checker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,12 @@ def _val2type(value: Any):
142142
if isinstance(value, list):
143143
types = set(_val2type(x) for x in value)
144144
if len(types) == 1:
145-
return List[types.pop()]
145+
return List[types.pop()] # type: ignore
146146

147147
return List[Any]
148148

149149
if isinstance(value, tuple):
150-
types = tuple(_val2type(x) for x in value)
150+
types = tuple(_val2type(x) for x in value) # type: ignore
151151
return Tuple[types]
152152

153153
return type(value)

0 commit comments

Comments
 (0)