Skip to content

Metaclasses should inherit from type. #2818

Closed
@ilevkivskyi

Description

@ilevkivskyi

There is something missing in #2475: this code:

class M:
    ...
class A(metaclass=M):
    ...

Passes without errors, but fails at runtime.


Btw, I have found two open issues that were fixed by #2475, I left comments referencing the #2475 in that issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions