Ken Jin <[email protected]> added the comment:
Alright, I got a minimum reproducible example:
class XBase(type):
def __new__(cls, name, bases, attrs, **kwargs):
attrs.pop('__module__')
return super().__new__(cls, name, bases, attrs, **kwargs)
class X(metaclass=XBase): ...
type('A', (X, ), {})
This triggers it, sending patch soon.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue44232>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com