Skip to content

Fix if statements with ambiguously indented bodies #360

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

Merged
merged 2 commits into from
Jan 19, 2017

Conversation

ambv
Copy link
Contributor

@ambv ambv commented Jan 18, 2017

Since this was related to the same lines in conditions, also fixed binary
operators on line beginnings.

Since this was related to the same lines in conditions, also fixed binary
operators on line beginnings.
isinstance(obj, types.BuiltinFunctionType) or
isinstance(obj, types.MethodType) or
isinstance(obj, types.ModuleType)):
isinstance(obj, types.ModuleType)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this could be rewritten as isinstance(obj, (types.FunctionType, types.BuiltinFunctionType, types.MethodType, types.ModuleType))?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, I tried to make minimal changes to make the review easier.

@ilevkivskyi ilevkivskyi merged commit 8d28131 into master Jan 19, 2017
@ilevkivskyi ilevkivskyi deleted the confusingindent branch January 19, 2017 09:24
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.

3 participants