mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 10:51:15 +08:00
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:
committed by
GitHub
parent
7c5a4c96ca
commit
4199352287
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user