Skip to content

Releases: Instagram/LibCST

LibCST 0.3.23 Release - 2021-11-23

23 Nov 13:07
9d611f9
Compare
Choose a tag to compare

What's Changed

  • Fixes incorrectly missing annotations by @lpetre in #561

Full Changelog: v0.3.22...v0.3.23

LibCST 0.3.22 Release - 2021-11-22

22 Nov 14:22
3895925
Compare
Choose a tag to compare

Notable changes

See in the CHANGELOG.md

All changes

  • Add --indent-string option to libcst.tool print by @jreese in #525
  • Fix documentation typos by @MapleCCC in #527
  • Fix incorrect m.OneOf() docs by @Zac-HD in #529
  • Remove a dead method in ApplyTypeAnnotationsVisitor by @stroxler in #533
  • Count the information we add in ApplyTypeAnnotationsVisitor by @stroxler in #537
  • Use QualifiedNameProvider to handle stub types by @stroxler in #536
  • Use from __future__ import annotations in ATAV by @stroxler in #540
  • Fix typing errors on ATAV by @stroxler in #542
  • Don't gather metadata if the wrapper already contains it by @lpetre in #545
  • Support relative imports in ATAV qualifier handling by @stroxler in #538
  • Upgrade black to fix errors in 3.9.8 by @lpetre in #547
  • Pass absolute path to codemod test by @lpetre in #549
  • Swallow parsing errors in string annotations. by @lpetre in #548
  • Stop parsing string annotations when no longer in a typing call by @lpetre in #546
  • Publish test packages by @lpetre in #550
  • disable setuptools local scheme when env var is set by @zsol in #551
  • Test overwriting imports w/ global and nonlocal stmts by @lpetre in #553
  • Pin accesses to import alias node by @giomeg in #554
  • Correct and simplify logic of recording assignments by @giomeg in #556
  • Move find_qualified_names_for in the Assignment class. by @giomeg in #557
  • Remove remnants of circleci by @lpetre in #552
  • bump version to 0.3.22 by @zsol in #559

New Contributors

Full Changelog: 0.3.21...v0.3.22

LibCST 0.3.20 Release - 2021-08-09

10 Aug 09:40
a1282f2
Compare
Choose a tag to compare

Fixed

  • Don't reset subprocess environment to fix codemodding on windows #495
  • TypeAnnotationsVisitor: don't truncate function return type #499
  • Docs: Fix typo #492

LibCST 0.3.19 Release - 2021-05-12

13 May 14:39
e0dd601
Compare
Choose a tag to compare

Updated

  • Return more specific QNames for assignments #477
  • Tie accesses from string annotation to the string node #483

Fixed

  • Fix leaking processes from TypeInferenceProvider #474
  • Fix TypeInferenceProvider breakage with empty cache #476
  • Fix formatting for link to QualifiedName class in docs #480

LibCST 0.3.18 Release - 2021-03-29

30 Mar 11:15
27ef2bf
Compare
Choose a tag to compare

Added

  • Add FlattenSentinel to support replacing a statement with multiple statements #455
  • Add BuiltinScope #469
  • Add FullyQualifiedNameProvider #465

Updated

  • Split QualifiedNameProvider out from libcst.metadata.scope_provider #464

Fixed

  • Exception while parsing escape character in raw f-strings #462

LibCST 0.3.17 Release - 2021-02-08

09 Feb 03:50
39ff458
Compare
Choose a tag to compare

Updated

  • Optimization: reduce the number of unused parallel processes #440

Fixed

  • Walrus operator's left hand side now has STORE expression context #443
  • ApplyTypeAnnotationsVisitor applies parameter annotations even if no return type is declared #445
  • Work around Windows problem by using dummy pool for jobs=1 #436
  • Remove extra unused imports added in other files #453

LibCST 0.3.16 Release - 2020-12-16

16 Dec 20:08
df231f3
Compare
Choose a tag to compare

Added

  • Support PEP-604 style unions in decorator annotations #429
  • Gathering exports in augmented assignment statements #426

Fixed

  • Don't allow out of order accesses in the global scope #431
  • Handle scope ordering in For statements #430
  • Fix for not parsing subscripts such as cast()["from"] #428
  • Walrus operator's left hand side now has STORE expression context #433

LibCST 0.3.15 Release - 2020-12-01

01 Dec 19:26
8eee3cc
Compare
Choose a tag to compare

Added

  • Support Named Unicode Characters and yield in f-strings #424

Fixed

  • Assignment/access ordering in comprehensions #423
  • Referencing of remaining objects in cast() #422

LibCST 0.3.14 Release - 2020-11-18

18 Nov 09:58
77d8a90
Compare
Choose a tag to compare

Fixed

  • Fix is_annotation for types used in classdef base and assign value #406
  • Visit concatenated f-strings during scope analysis #411
  • Correct handling of walrus operator in function args #417
  • Allow generator expressions in f-strings #419
  • Keep track of assignment/access ordering during scope analysis #413
  • Handle string type references in cast() during scope analysis #418

LibCST 0.3.13 Release - 2020-10-12

12 Oct 21:54
01c8098
Compare
Choose a tag to compare

Fixed

  • Use correct type for AugAssign and AnnAssign target #396
  • Support string annotations for type aliases #401