Releases: Instagram/LibCST
Releases · Instagram/LibCST
LibCST 0.3.12 Release - 2020-10-01
LibCST 0.3.5 Release - 2020-09-28
LibCST 0.3.10 Release - 2020-09-17
LibCST 0.3.9 Release - 2020-09-07
LibCST 0.3.8 Release - 2020-07-22
LibCST 0.3.7 Release - 2020-06-25
Added
- Added
RenameCommand
to rename all instances of a local or imported object to a specified new name. #308
Updated
Fixed
- Fixed
ImportError
under Python 3.9. #306 - Fixed
stdout
being plugged into successfully codemod-ed files. #309 - Fixed
QualifiedName
retrieval for names with repeated substrings. #312 - Fixed default values of keyword-only and positional-only arguments in
ApplyTypeAnnotationsVisitor
. #314 - Fixed
ExpressionContextProvider
by giving subscript values aLOAD
context. #319
LibCST 0.3.6 Release - 2020-05-29
Added
- Added
ConvertNamedTupleToDataclassCommand
to convertNamedTuple
class declarations to Python 3.7dataclasses
using the@dataclass(frozen=True)
decorator. #299
Fixed
LibCST 0.3.5 Release - 2020-05-13
Updated
- Expose more granular
Assignments
andAccesses
for dotted imports inScopeProvider
. #284 get_qualified_names_for
returns the most appropriate qualified name. #290- Surface
SyntaxError
raised by formatter in codemod run. #288 #289 - Rename
ApplyTypeAnnotationsVisitor.add_stub_to_context
asApplyTypeAnnotationsVisitor.store_stub_in_context
and addoverwrite_existing_annotations
to allow overwrite existing type annotations. #289
Fixed
- Close opened file handles on finishing codemod to avoid
Too many open files
on OSX. #283
Deprecated
ApplyTypeAnnotationsVisitor.add_stub_to_context
is renamed asApplyTypeAnnotationsVisitor.store_stub_in_context
.
LibCST 0.3.4 Release - 2020-03-27
Added
- Supported CST parsing for Python 3.0, 3.1 and 3.3. #261
- Added
RemoveUnusedImportsCommand
for removing unused import codemod. #266 - Added
ApplyTypeAnnotationsVisitor.add_stub_to_context
for apply type annotations from stub modules. #265
Updated
- Improved exception message of
get_metadata
when MetadataWrapper is not used. #257 - New steps for Pyre type check in README.rst which analyzes installed Python sources for better type checking. #262
Fixed
LibCST 0.3.3 Release - 2020-03-05
Added
ByteSpanPositionProvider
provides start offset and length of CSTNode as metadata.get_docstring
helper provides docstring fromModule
,ClassDef
andFunctionDef
node types.
Updated
- Optimized
ScopeProvider
performance to run faster and use less memory:- remove unnecessary
Assignment
of keywordArg
. - don't provide scope object for formatting information nodes.
- batch set union updates in
infer_accesses
step.
- remove unnecessary
Fixed
- Fixed
_assignments
mutation when calling read-onlyScope.get_qualified_names_for
and__contains__
.