14
0
forked from pool/python-libcst

Accepting request 956487 from home:dspinella:branches:home:mcepl:branches:devel:languages:python

ok

OBS-URL: https://build.opensuse.org/request/show/956487
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libcst?expand=0&rev=16
This commit is contained in:
2022-02-21 13:47:06 +00:00
committed by Git OBS Bridge
parent 1409b90fdf
commit 3dc919d44d
9 changed files with 208 additions and 39 deletions

View File

@@ -1,3 +1,79 @@
-------------------------------------------------------------------
Fri Feb 18 21:32:48 UTC 2022 - Matej Cepl <mcepl@suse.com>
- Update to 0.4.1:
- Add docs about the native parts
- Specify minimum rust toolchain version
- build wheels on main branch for linux/arm64
- ApplyTypeAnnotationVisitor changes
- Add support for methods with func type comment excluding
self/cls
- Merge in TypeVars and Generic base classes in
ApplyTypeAnnotationVisitor
- Full handling for applying type comments to Assign
- Add support for For and With
- Support FunctionDef transformations
- change pyo3 as optional dependency in native Python Parser
- add slots to base classes, @add_slots takes bases into
account
- [native] Box most enums
- [native] Return tuples instead of lists in CST nodes
- Allow trailing whitespace without newline at EOF
- Handle ast.parse failures when converting function type
comments
- [native] Don't redundantly nest StarredElement inside another
Element
- [native] Allow unparenthesized tuples inside f-strings
- Don't require whitespace right after match
- Proxy both parentheses in some pattern matching nodes
- Update to 0.4.0 - 2022-01-12
This release contains a new parsing infrastructure that is
turned off by default. You can enable it by setting the
LIBCST_PARSER_TYPE environment variable to native before
parsing an input with the usual LibCST APIs. Parsing Python
3.10 documents is only supported in this new mode.
Note: the new parser is built as a native extension, so LibCST
will ship with binary wheels from now on.
- Implement a Python PEG parser in Rust
- implement PEP-654: except*
- Implement PEP-634 - Match statement
- Add instructions to codegen test failures
- Support Parenthesized With Statements
- Support relative imports in AddImportsVisitor
- Codemod for PEP 484 Assign w / type comments -> PEP 526
AnnAssign
- Update license headers
- Use precise signature matching when inserting function type
annotations
- Update to 0.3.23 - 2021-11-23
- Fix missing string annotation references
- Update to 0.3.22 - 2021-11-22
- Add --indent-string option to libcst.tool print
- Publish pre-release packages to test.pypi.org
- Add ImportAssignment class extending Assignment to record
assignments for import statements
- Do not add imports if we added no type info in
ApplyTypeAnnotationVisitor (commit)
- Support relative imports in ApplyTypeAnnotationVisitor
qualifier handling
- Don't gather metadata if the wrapper already contains it
- Swallow parsing errors in string annotations
- Stop parsing string annotations when no longer in a typing
call
- Move find_qualified_names_for in the Assignment class
- Update to 0.3.21 - 2021-09-21
- Fix pyre command for type inference provider
- Change codegen to treat typing.Union[Foo, NoneType] and
typing.Optional[Foo] as the same gh#Instagram/LibCST#508
- Rewrite the MatchIfTrue type to be generic on _MatchIfTrueT
- Update to 0.3.20 - 2021-08-09
- TypeAnnotationsVisitor: don't truncate function return type
-------------------------------------------------------------------
Wed May 19 15:49:13 UTC 2021 - Ben Greiner <code@bnavigator.de>