Irit Katriel <[email protected]> added the comment:
This seems to have been fixed by now. I get this on 3.11:
>>> from types import new_class
>>> from datetime import datetime
>>> new_class('tdatetime', (datetime, ), kwds={'foo':'bar'})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/iritkatriel/src/cpython-1/Lib/types.py", line 77, in new_class
return meta(name, resolved_bases, ns, **kwds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: tdatetime.__init_subclass__() takes no keyword arguments
----------
nosy: +iritkatriel
resolution: -> out of date
status: open -> pending
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue17179>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com