Skip to content

change: remove superfluous parens per Pylint rule #903

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 3 commits into from
Jul 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ disable=
chained-comparison, # TODO: Simplify chained comparison between operands
simplifiable-if-statement, # TODO: Simplify ifs
too-many-branches, # TODO: Simplify or ignore as appropriate
superfluous-parens, # TODO: Remove unnecessary parens
missing-docstring, # TODO: Fix missing docstring

[REPORTS]
Expand Down
2 changes: 1 addition & 1 deletion src/sagemaker/local/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ def _aws_credentials_available_in_metadata_service():
user_agent=session.user_agent(),
)
)
return not (instance_metadata_provider.load() is None)
return not instance_metadata_provider.load() is None


def _write_json_file(filename, content):
Expand Down