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

bpo-38870: don't put unnecessary parantheses on class declarations #20134

Merged
merged 1 commit into from
May 16, 2020

Conversation

isidentical
Copy link
Member

@isidentical isidentical commented May 16, 2020

current:

>>> ast.unparse(ast.parse("class Type: pass"))
'class Type():\n    pass'

after this PR:

>>> ast.unparse(ast.parse("class Type: pass"))
'class Type:\n    pass'
>>> ast.unparse(ast.parse("class Type(BaseType): pass"))
'class Type(BaseType):\n    pass'

https://bugs.python.org/issue38870

@pablogsal pablogsal merged commit 25160cd into python:master May 16, 2020
arturoescaip pushed a commit to arturoescaip/cpython that referenced this pull request May 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants