Libcst

Latest version: v1.2.0

Safety actively analyzes 613750 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 9

1.2.0

Updated
* Support running LibCST on Python 3.12 and drop support for running it on 3.8
* remove 3.8 support by zsol in https://github.com/Instagram/LibCST/pull/1073
* Remove reference to distutils by zsol in https://github.com/Instagram/LibCST/pull/1099
* Update pyproject.toml for Python 3.12 support by itamaro in https://github.com/Instagram/LibCST/pull/1038

Added
* Allow `Element::codegen` to be used by external users by Wilfred in https://github.com/Instagram/LibCST/pull/1071

Fixed
* Fix parsing list matchers without explicit brackets by zsol in https://github.com/Instagram/LibCST/pull/1097
* installing rustc/cargo for mybinder demo by aleivag in https://github.com/Instagram/LibCST/pull/1083
* fix filepathprovider generic type by kinto0 in https://github.com/Instagram/LibCST/pull/1036

New Contributors
* itamaro made their first contribution in https://github.com/Instagram/LibCST/pull/1039
* kinto0 made their first contribution in https://github.com/Instagram/LibCST/pull/1036
* dtolnay made their first contribution in https://github.com/Instagram/LibCST/pull/1063
* anonymousdouble made their first contribution in https://github.com/Instagram/LibCST/pull/1082
* aleivag made their first contribution in https://github.com/Instagram/LibCST/pull/1083
* Wilfred made their first contribution in https://github.com/Instagram/LibCST/pull/1071
* diliop made their first contribution in https://github.com/Instagram/LibCST/pull/1106

**Full Changelog**: https://github.com/Instagram/LibCST/compare/v1.1.0...v1.2.0

1.1.0

Added
* PEP 695 support
* parser: PEP 695 - Type Parameter Syntax 1004
* Scope provider: support for type annotations 1014
* PEP 701 support
* parser: support arbitrarily nested f-strings 1026
* parser: Parse multiline expressions in f-strings 1027
* parser: Support files with mixed newlines 1007
* [libcst](https://crates.io/crates/libcst) is now published to crates.io

Fixed
* codemod/ApplyTypeAnnotationsVisitor: Do not annotate the same variable multiple times 956
* parser: Don't swallow trailing whitespace 976
* codemod/rename: Avoid duplicating import statements when the module name doesn't change 981

Updated
* cli: Don't gather dirs ending .py 994
* drop support for Python 3.7 997
* A few parser performance improvements:
* Switch to using thread_local regular expressions to stop mutext contention 996
* Remove need for regex in TextPosition::matches 1002
* Remove Regexes from whitespace parser 1008

1.0.1

Fixed
* Fix type of `evaluated_value` on string to allow bytes by ljodal in https://github.com/Instagram/LibCST/pull/721
* Fix Sentinal typo by kit1980 in https://github.com/Instagram/LibCST/pull/948
* Allow no whitespace after lambda body in certain cases by zsol in https://github.com/Instagram/LibCST/pull/939
* Fix whitespace, fstring, walrus related parse errors (939, 938, 937,
936, 935, 934, 933, 932, 931) by zsol in https://github.com/Instagram/LibCST/pull/940
* Codemod CLI: Print diff only when there is a change by kit1980 in https://github.com/Instagram/LibCST/pull/945

New Contributors
* ljodal made their first contribution in https://github.com/Instagram/LibCST/pull/721
* kit1980 made their first contribution in https://github.com/Instagram/LibCST/pull/948

**Full Changelog**: https://github.com/Instagram/LibCST/compare/v1.0.0...v1.0.1

1.0.0

The first major release of LibCST is essentially the same as 0.4.10, but using the
newer, Rust-based parser implementation by default. The old, pure Python parser is
scheduled for removal in the next (non-patch) release. Until then, it is available with
the `LIBCST_PARSER_TYPE` environment variable set to `pure`.

Updated

* Switch the default parser implementation to native by zsol in https://github.com/Instagram/LibCST/pull/929

0.4.10

New Contributors
* and-semakin made their first contribution in https://github.com/Instagram/LibCST/pull/816
* carljm made their first contribution in https://github.com/Instagram/LibCST/pull/828
* sagarbadiyani made their first contribution in https://github.com/Instagram/LibCST/pull/841
* podtserkovskiy made their first contribution in https://github.com/Instagram/LibCST/pull/894
* rchen152 made their first contribution in https://github.com/Instagram/LibCST/pull/903
* Kludex made their first contribution in https://github.com/Instagram/LibCST/pull/913
* jakkdl made their first contribution in https://github.com/Instagram/LibCST/pull/921

Added
* Add py3.11 classifier by and-semakin in https://github.com/Instagram/LibCST/pull/816
* Script to regenerate test fixtures, upgrade to Pyre 0.9.10 by amyreese in https://github.com/Instagram/LibCST/pull/872
* Allow FullyQualifiedNameProvider to work with absolute paths by amyreese in https://github.com/Instagram/LibCST/pull/867
* Allow running codemods without configuring in YAML by akx in https://github.com/Instagram/LibCST/pull/879
* Support PEP 604 in ApplyTypeAnnotationsVisitor by hauntsaninja in https://github.com/Instagram/LibCST/pull/868

Fixed
* fix PEP 604 union annotations in decorators by carljm in https://github.com/Instagram/LibCST/pull/828
* [AddImportsVisitor] Docstring Check Only for the Top Element of the Body by sagarbadiyani in https://github.com/Instagram/LibCST/pull/841
* Fix [855](https://github.com/Instagram/LibCST/issues/855) - fail to parse with statement by stroxler in https://github.com/Instagram/LibCST/pull/861
* Add setuptools-rust to build requirements in setup.py by amyreese in https://github.com/Instagram/LibCST/pull/873
* Relative imports from '' package are not allowed by podtserkovskiy in https://github.com/Instagram/LibCST/pull/894
* Use subprocess.DEVNULL instead of opening os.devnull by hand by akx in https://github.com/Instagram/LibCST/pull/897
* Ensure current Python interpreter is used for subprocesses by akx in https://github.com/Instagram/LibCST/pull/898
* Fix ApplyTypeAnnotationsVisitor behavior on attribute assignments. by rchen152 in https://github.com/Instagram/LibCST/pull/903
* Fix spelling and grammar in some comments by stroxler in https://github.com/Instagram/LibCST/pull/908
* skip escaped backslash in rf-string by jakkdl in https://github.com/Instagram/LibCST/pull/921
* relax validation rules on decorators by jakkdl in https://github.com/Instagram/LibCST/pull/926

**Full Changelog**: https://github.com/Instagram/LibCST/compare/v0.4.9...v0.4.10

0.4.9

Updated
* Bump setuptools-rust version by zsol in https://github.com/Instagram/LibCST/pull/809

**Full Changelog**: https://github.com/Instagram/LibCST/compare/v0.4.8...v0.4.9

Page 1 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.