Skip to content

Remove inheriting from object when creating classes with type() #532

Open
@verhovsky

Description

Just as

class A(object): pass

is re-written as

class A: pass

, so should

A = type("A", (object,), {})

be re-written as

A = type("A", (), {})

See python/cpython#19553

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions