mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-43772: Fix TypeVar.__ror__ (GH-25339)
This commit is contained in:
parent
522433601a
commit
9045919bfa
3 changed files with 13 additions and 2 deletions
|
|
@ -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__:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue