Skip to content

Commit

Permalink
Required/NotRequired: fix typo (python#962)
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra authored Nov 24, 2021
1 parent fefa535 commit 28b64f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typing_extensions/src_py3/typing_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2239,7 +2239,7 @@ def __hash__(self):
return hash((type(self).__name__, self.__type__))

def __eq__(self, other):
if not isinstance(other, _Final):
if not isinstance(other, type(self)):
return NotImplemented
if self.__type__ is not None:
return self.__type__ == other.__type__
Expand Down

0 comments on commit 28b64f4

Please sign in to comment.