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 levkivskyi
Recipients levkivskyi, simon.percivall
Date 2017-04-04.20:29:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1491337796.51.0.0537990914165.issue29966@psf.upfronthosting.co.za>
In-reply-to
Content
You could try:

glob = globals.copy()
glob.update(a.__dict__)
glob.update(b.__dict__)

You can do this automatically following MyClass.__mro__ and then collecting relevant __module__ attributes on bases.

However, there is little chance this will be fixed in typing itself. It is difficult to cover all possible cases, so that users should choose custom globals/locals for their needs.
History
Date User Action Args
2017-04-04 20:29:56levkivskyisetrecipients: + levkivskyi, simon.percivall
2017-04-04 20:29:56levkivskyisetmessageid: <1491337796.51.0.0537990914165.issue29966@psf.upfronthosting.co.za>
2017-04-04 20:29:56levkivskyilinkissue29966 messages
2017-04-04 20:29:56levkivskyicreate