Message289019
> What if explicitly set __abstractmethods__ = True for these types?
Unfortunately this does not help. I think this is because dash_R_cleanup only clears caches for classes in collections.abc.__all__ and their immediate .__subclasses__(). Making this recursive (i.e. also clearing caches of __subclasses__() of __subclasses__() etc) will probably fix the problem (provided we also add __abstractmethods__ = True). However, this looks a bit too complex for me. I would rather add few more typing._cleanups (anyway this failure only happens with typing ABCs) |
|
Date |
User |
Action |
Args |
2017-03-05 16:30:42 | levkivskyi | set | recipients:
+ levkivskyi, gvanrossum, rhettinger, vstinner, stutzbach, serhiy.storchaka |
2017-03-05 16:30:42 | levkivskyi | set | messageid: <1488731442.53.0.839492288666.issue29638@psf.upfronthosting.co.za> |
2017-03-05 16:30:42 | levkivskyi | link | issue29638 messages |
2017-03-05 16:30:42 | levkivskyi | create | |
|