We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 716c4cd commit 2be4069Copy full SHA for 2be4069
mypy/types.py
@@ -956,9 +956,7 @@ class FunctionLike(ProperType):
956
def __init__(self, line: int = -1, column: int = -1) -> None:
957
super().__init__(line, column)
958
self.can_be_false = False
959
- if TYPE_CHECKING: # we don't want a runtime None value
960
- # Corresponding instance type (e.g. builtins.type)
961
- self.fallback = cast(Instance, None)
+ self.fallback: Instance
962
963
@abstractmethod
964
def is_type_obj(self) -> bool: pass
0 commit comments