Fix another typo in PEP 487
This commit is contained in:
parent
07d557fedf
commit
672f5f41b1
|
@ -345,8 +345,8 @@ with the recommendation to override ``__new__`` in metaclasses instead of
|
||||||
class MyClass(metaclass=MyMeta, otherarg=1):
|
class MyClass(metaclass=MyMeta, otherarg=1):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
Only defining a ``__init__`` in a metaclass continues to fail with ``TypeError``
|
Only defining an ``__init__`` method in a metaclass continues to fail with
|
||||||
if keyword arguments are given::
|
``TypeError`` if keyword arguments are given::
|
||||||
|
|
||||||
class MyMeta(type):
|
class MyMeta(type):
|
||||||
def __init__(self, name, bases, namespace, otherarg):
|
def __init__(self, name, bases, namespace, otherarg):
|
||||||
|
|
Loading…
Reference in New Issue