homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients alexandre.vassalotti, gvanrossum, maatt, pitrou, serhiy.storchaka
Date 2015年11月19日.05:01:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1447909317.58.0.452395230215.issue25472@psf.upfronthosting.co.za>
In-reply-to
Content
Actually, I just found an embarrassingly simple fix:
diff --git a/src/typing.py b/src/typing.py
index d900036..49c4a06 100644
--- a/src/typing.py
+++ b/src/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,
I'll go check this in now, together with a test.
History
Date User Action Args
2015年11月19日 05:01:57gvanrossumsetrecipients: + gvanrossum, pitrou, alexandre.vassalotti, serhiy.storchaka, maatt
2015年11月19日 05:01:57gvanrossumsetmessageid: <1447909317.58.0.452395230215.issue25472@psf.upfronthosting.co.za>
2015年11月19日 05:01:57gvanrossumlinkissue25472 messages
2015年11月19日 05:01:57gvanrossumcreate

AltStyle によって変換されたページ (->オリジナル) /