summaryrefslogtreecommitdiffstats
path: root/Lib/typing.py
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2021-04-11 03:00:05 (GMT)
committerGitHub <noreply@github.com>2021-04-11 03:00:05 (GMT)
commit9045919bfa820379a66ea67219f79ef6d9ecab49 (patch)
tree7762f15b2d875b36ffc84a2e98ff761e6267cd6d /Lib/typing.py
parent522433601a5c64603dab3d733f41a5db39d237eb (diff)
downloadcpython-9045919bfa820379a66ea67219f79ef6d9ecab49.zip
cpython-9045919bfa820379a66ea67219f79ef6d9ecab49.tar.gz
cpython-9045919bfa820379a66ea67219f79ef6d9ecab49.tar.bz2
bpo-43772: Fix TypeVar.__ror__ (GH-25339)
Diffstat (limited to 'Lib/typing.py')
-rw-r--r--Lib/typing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/typing.py b/Lib/typing.py
index 6461ba2..a24c01f 100644
--- a/Lib/typing.py
+++ b/Lib/typing.py
@@ -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__: