Link [ pkgsrc | NetBSD | pkgsrc git mirror | PR fulltext-search | netbsd commit viewer ]


   
        usage: [branch:branch] [user:user] [path[@revision]] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN pkgtools/pkg)




switch to index mode

recent branches: MAIN (37m)  pkgsrc-2024Q1 (10d)  pkgsrc-2023Q4 (57d)  pkgsrc-2023Q2 (89d)  pkgsrc-2023Q3 (169d) 

2024-05-28 04:06:41 UTC Now

2023-10-07 20:14:31 UTC MAIN commitmail json YAML

py-libcst: updated to 1.1.0

1.1.0 - 2023-10-05

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

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

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

(adam)