bpo-43772: Fix TypeVar.__ror__ (GH-25339)

This commit is contained in:
Jelle Zijlstra 2021-04-10 20:00:05 -07:00 • committed by GitHub
parent 522433601a
commit 9045919bfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 2 deletions

View file

@ -648,8 +648,8 @@ class _TypeVarLike:
def __or__(self, right):
return Union[self, right]
def __ror__(self, right):
return Union[self, right]
def __ror__(self, left):
return Union[left, self]
def __repr__(self):
if self.__covariant__: