v0.4.2
New Contributors
- @stanislavlevin made their first contribution in #650
- @dmitryvinn made their first contribution in #655
- @wiyr made their first contribution in #669
- @toofar made their first contribution in #675
Fixed
- native: Avoid crashing by making IntoPy conversion fallible by @zsol in #639
- native: make sure ParserError's line is zero-indexed by @zsol in #681
- Fix space validation for AsName and Await by @zsol in #641
- Qualified Name Provider: Fix returned qname for symbols that are prefixes of each other by @wiyr in #669
- Rename Codemod: Correct last renamed import from by @toofar in #675
- Many changes to the Apply Type Comments codemod:
- Allow for skipping quotes when applying type comments by @stroxler in #644
- Port pyre fixes by @stroxler in #651
- Preserve as-imports when merging type annotations. by @martindemello in #664
- Qualify imported symbols when the dequalified form would cause a conflict by @martindemello in #674
- Add an argument to always qualify imported type annotations. by @martindemello in #676
Added
- Create an AddTrailingCommas codemod by @stroxler in #643
- Define gather global names visitor by @shannonzhu in #657
Updated
- Support module and package names in the codemod context by @lpetre in #662
- Drop support for running libcst using a python 3.6 interpreter by @lpetre in #663
- Update relative import logic to match cpython by @lpetre in #660
- Scope Provider: Consider access information when computing qualified names for nodes by @lpetre in #682
Full Changelog: v0.4.1...v0.4.2