Skip to content

Commit

Permalink
Suppress mypy errors
Browse files Browse the repository at this point in the history
Directly interacting with a type object would otherwise cause some
false positives.
  • Loading branch information
Lunderberg committed May 16, 2022
1 parent f76ce64 commit 0bb2bbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tvm/tir/schedule/_type_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ def _val2type(value: Any):
if isinstance(value, list):
types = set(_val2type(x) for x in value)
if len(types) == 1:
return List[types.pop()]
return List[types.pop()] # type: ignore

return List[Any]

if isinstance(value, tuple):
types = tuple(_val2type(x) for x in value)
types = tuple(_val2type(x) for x in value) # type: ignore
return Tuple[types]

return type(value)
Expand Down

0 comments on commit 0bb2bbd

Please sign in to comment.