Skip to content

Commit

Permalink
Satisfy flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhalter committed Jul 27, 2023
1 parent 67d6262 commit cd4ca74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jedi/api/refactoring/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ def rename(inference_state, definitions, new_name):
p = Path(d.module_path)
file_renames.add(_calculate_rename(p, new_name))
elif isinstance(d._name, ImplicitNSName):
#file_renames.add(_calculate_rename(p, new_name))
for p in d._name._value.py__path__():
file_renames.add(_calculate_rename(Path(p), new_name))
else:
Expand Down Expand Up @@ -257,6 +256,7 @@ def _remove_indent_of_prefix(prefix):
"""
return ''.join(split_lines(prefix, keepends=True)[:-1])


def _try_relative_to(path: Path, base: Path) -> Path:
try:
return path.relative_to(base)
Expand Down

0 comments on commit cd4ca74

Please sign in to comment.