summaryrefslogtreecommitdiffstats
path: root/Lib/typing.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2015-11-19 05:12:58 (GMT)
committerGuido van Rossum <guido@python.org>2015-11-19 05:12:58 (GMT)
commitbb7c57c6cdc9e36a9b5875f5bcfd52a8df10b7ba (patch)
tree3ab34406c26a66d52a494e1604df07fbc7ea7ef6 /Lib/typing.py
parent6efc7e726fa225bdbdbc549a6e2799869b76c391 (diff)
downloadcpython-bb7c57c6cdc9e36a9b5875f5bcfd52a8df10b7ba.zip
cpython-bb7c57c6cdc9e36a9b5875f5bcfd52a8df10b7ba.tar.gz
cpython-bb7c57c6cdc9e36a9b5875f5bcfd52a8df10b7ba.tar.bz2
Issue #25472: In B[<type>], insert B in front of __bases__, to make the __dict__ descriptor work.
Diffstat (limited to 'Lib/typing.py')
-rw-r--r--Lib/typing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/typing.py b/Lib/typing.py
index d900036..49c4a06 100644
--- a/Lib/typing.py
+++ b/Lib/typing.py
@@ -981,7 +981,7 @@ class GenericMeta(TypingMeta, abc.ABCMeta):
"Cannot substitute %s for %s in %s" %
(_type_repr(new), _type_repr(old), self))
- return self.__class__(self.__name__, self.__bases__,
+ return self.__class__(self.__name__, (self,) + self.__bases__,
dict(self.__dict__),
parameters=params,
origin=self,