Skip to content

keyword arguments not passed to metaclass __new__ #1163

@slozier

Description

@slozier

Ran into this issue while testing the typing module in the 3.5 stdlib:

class TypingMeta(type):
    def __new__(cls, name, bases, namespace, **kwargs):
        assert "_root" in kwargs

class _TypingBase(metaclass=TypingMeta, _root=True):
    pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions