Skip to content

Commit

Permalink
Don't use the walrus
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielNoord committed Feb 5, 2023
1 parent 539690f commit f889b5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion astroid/interpreter/_import/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,8 @@ def _find_spec_with_path(
if not hasattr(meta_finder, "find_spec"):
continue

if spec := meta_finder.find_spec(modname, submodule_path):
spec = meta_finder.find_spec(modname, submodule_path)
if spec:
return (
meta_finder,
ModuleSpec(
Expand Down

0 comments on commit f889b5d

Please sign in to comment.