Skip to content
Snippets Groups Projects
Unverified Commit e56b1736 authored by jason_w's avatar jason_w Committed by GitHub
Browse files

[Enhancement]: Remove unnecessary "if statement" (#536)

Remove unnecessary "if statement".
parent 5d7527d7
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,7 @@ class Registry: ...@@ -72,7 +72,7 @@ class Registry:
assert isinstance(scope, str) assert isinstance(scope, str)
self._scope = scope self._scope = scope
else: else:
self._scope = self.infer_scope() if scope is None else scope self._scope = self.infer_scope()
# See https://mypy.readthedocs.io/en/stable/common_issues.html# # See https://mypy.readthedocs.io/en/stable/common_issues.html#
# variables-vs-type-aliases for the use # variables-vs-type-aliases for the use
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment