Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
verhovsky opened this issue Sep 12, 2021 · 2 comments
Open

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

verhovsky opened this issue Sep 12, 2021 · 2 comments

Comments

@verhovsky
Copy link
Contributor

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

@colin99d
Copy link

I am going to attempt this one. @asottile could you assign me?

@asottile
Copy link
Owner

I don't use the assign feature because if someone abandons working on it then it'll look like it's in progress forever and people will be discouraged from even attempting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants