Fix typing.ForwardRef.__eq__ stub (#4177)

The return type of `__eq___` should be `bool`.

Otherwise, `mypy --disallow-any-unimported --no-silence-site-packages`
fails because the return type becomes `Union[bool, Any]` due to an
unfollowed import.
This commit is contained in:
Eric N. Vander Weele
2020-06-06 11:04:05 -04:00
committed by GitHub
parent 7c5a4c96ca
commit 4199352287

View File

@@ -680,6 +680,6 @@ if sys.version_info >= (3, 7):
def __init__(self, arg: str, is_argument: bool = ...) -> None: ...
def _evaluate(self, globalns: Optional[Dict[str, Any]],
localns: Optional[Dict[str, Any]]) -> Optional[Any]: ...
def __eq__(self, other: Any) -> Union[bool, NotImplemented]: ...
def __eq__(self, other: Any) -> bool: ...
def __hash__(self) -> int: ...
def __repr__(self) -> str: ...