Skip to content

Fix if statements with ambiguously indented bodies - #360

Merged
ilevkivskyi merged 2 commits into
masterfrom
confusingindent
Jan 19, 2017
Merged

ilevkivskyi merged 2 commits into
masterfrom
confusingindent

Conversation

@ambv

@ambv ambv commented Jan 18, 2017

Copy link
Copy Markdown
Contributor

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.
Comment thread src/typing.py
isinstance(obj, types.BuiltinFunctionType) or
isinstance(obj, types.MethodType) or
isinstance(obj, types.ModuleType)):
isinstance(obj, types.ModuleType)

Copy link
Copy Markdown
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
Copy Markdown
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