mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Start writing CHANGELOG for the next release
This commit is contained in:
@@ -6,6 +6,15 @@ Changelog
|
|||||||
Unreleased
|
Unreleased
|
||||||
++++++++++
|
++++++++++
|
||||||
|
|
||||||
|
- Dropped Python 2 and Python 3.5
|
||||||
|
- Using ``pathlib.Path()`` as an output instead of ``str`` in most places:
|
||||||
|
- ``Project.path``
|
||||||
|
- ``Script.path``
|
||||||
|
- ``Definition.module_path``
|
||||||
|
- ``Refactoring.get_renames``
|
||||||
|
- ``Refactoring.get_changed_files``
|
||||||
|
- Started using annotations
|
||||||
|
|
||||||
0.17.2 (2020-07-17)
|
0.17.2 (2020-07-17)
|
||||||
+++++++++++++++++++
|
+++++++++++++++++++
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ class MixedTreeName(TreeNameDefinition):
|
|||||||
provided was already executed. In that case if something is not properly
|
provided was already executed. In that case if something is not properly
|
||||||
inferred, it should still infer from the variables it already knows.
|
inferred, it should still infer from the variables it already knows.
|
||||||
"""
|
"""
|
||||||
inferred = super(MixedTreeName, self).infer()
|
inferred = super().infer()
|
||||||
if not inferred:
|
if not inferred:
|
||||||
for compiled_value in self.parent_context.mixed_values:
|
for compiled_value in self.parent_context.mixed_values:
|
||||||
for f in compiled_value.get_filters():
|
for f in compiled_value.get_filters():
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import difflib
|
import difflib
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Dict
|
from typing import Dict, Iterable, Tuple
|
||||||
|
|
||||||
from parso import split_lines
|
from parso import split_lines
|
||||||
|
|
||||||
@@ -99,11 +99,9 @@ class Refactoring(object):
|
|||||||
) for path, map_ in sorted(self._file_to_node_changes.items())
|
) for path, map_ in sorted(self._file_to_node_changes.items())
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_renames(self):
|
def get_renames(self) -> Iterable[Tuple[Path, Path]]:
|
||||||
"""
|
"""
|
||||||
Files can be renamed in a refactoring.
|
Files can be renamed in a refactoring.
|
||||||
|
|
||||||
Returns ``Iterable[Tuple[str, str]]``.
|
|
||||||
"""
|
"""
|
||||||
return sorted(self._renames)
|
return sorted(self._renames)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user