Skip to content

Commit f9febc0

Browse files
ilevkivskyigvanrossum
authored andcommitted
Fix crash on older version of typing (#3303)
1 parent ddf03d1 commit f9febc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/nodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2272,7 +2272,7 @@ def fullname(self) -> Optional[str]:
22722272
return None
22732273

22742274
@property
2275-
def type(self) -> Optional['mypy.types.Type']:
2275+
def type(self) -> 'Optional[mypy.types.Type]':
22762276
# IDEA: Get rid of the Any type.
22772277
node = self.node # type: Any
22782278
if self.type_override is not None:

0 commit comments

Comments
 (0)