mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Satisfy flake8
This commit is contained in:
@@ -159,7 +159,6 @@ def rename(inference_state, definitions, new_name):
|
|||||||
p = Path(d.module_path)
|
p = Path(d.module_path)
|
||||||
file_renames.add(_calculate_rename(p, new_name))
|
file_renames.add(_calculate_rename(p, new_name))
|
||||||
elif isinstance(d._name, ImplicitNSName):
|
elif isinstance(d._name, ImplicitNSName):
|
||||||
#file_renames.add(_calculate_rename(p, new_name))
|
|
||||||
for p in d._name._value.py__path__():
|
for p in d._name._value.py__path__():
|
||||||
file_renames.add(_calculate_rename(Path(p), new_name))
|
file_renames.add(_calculate_rename(Path(p), new_name))
|
||||||
else:
|
else:
|
||||||
@@ -257,6 +256,7 @@ def _remove_indent_of_prefix(prefix):
|
|||||||
"""
|
"""
|
||||||
return ''.join(split_lines(prefix, keepends=True)[:-1])
|
return ''.join(split_lines(prefix, keepends=True)[:-1])
|
||||||
|
|
||||||
|
|
||||||
def _try_relative_to(path: Path, base: Path) -> Path:
|
def _try_relative_to(path: Path, base: Path) -> Path:
|
||||||
try:
|
try:
|
||||||
return path.relative_to(base)
|
return path.relative_to(base)
|
||||||
|
|||||||
Reference in New Issue
Block a user