Skip to content

Commit

Permalink
Ignore type error due to missing import on old python
Browse files Browse the repository at this point in the history
  • Loading branch information
felixonmars authored and carljm committed Nov 20, 2020
1 parent 7810bc8 commit 8c626bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monkeytype/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def is_union(typ: Any) -> bool:

try:
# Python 3.9
from typing import _SpecialGenericAlias
from typing import _SpecialGenericAlias # type: ignore

def is_generic(typ: Any) -> bool:
return typ is Union or isinstance(typ, _GenericAlias) or isinstance(typ, _SpecialGenericAlias)
Expand Down

0 comments on commit 8c626bb

Please sign in to comment.