LibCST
LibCST copied to clipboard
A concrete syntax tree parser and serializer library for Python that preserves many aspects of Python's abstract syntax tree
I'm packaging your module as an rpm package so I'm using the typical PEP517 based build, install and test cycle used on building packages from non-root account. - `python3 -sBm...
I started encountering this when updating https://github.com/python-trio/flake8-trio - but it's been 9 months since last time I ran the type tests so it'd be a pain to figure out when...
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.37 to 1.0.55. Release notes Sourced from thiserror's releases. 1.0.55 Work around improperly cached build script result by sccache – second attempt (#280) 1.0.54 Work around improperly...
Bumps [memchr](https://github.com/BurntSushi/memchr) from 2.5.0 to 2.7.1. Commits 31c1e79 2.7.1 d9ac66d api: impl Clone for FindRevIter 8957028 benchmarks/engines/rust-memchr: complete bump to 2.7.0 5caaf3e benchmarks/engines/rust-memchr: bump to 2.7.0 b93d817 2.7.0 8b62928 cargo:...
Bumps [trybuild](https://github.com/dtolnay/trybuild) from 1.0.71 to 1.0.86. Release notes Sourced from trybuild's releases. 1.0.86 Support edition 2024 (#250, #252, thanks @mohe2015) 1.0.85 Set thread name to produce better message on panic...
Bumps [itertools](https://github.com/rust-itertools/itertools) from 0.11.0 to 0.12.1. Changelog Sourced from itertools's changelog. 0.12.1 Added Documented iteration order guarantee for Itertools::[tuple_]combinations (#822) Documented possible panic in iterate (#842) Implemented Clone and Debug...
I was working on a linter/fixer tool and decided to test it against the stdlib to see what it would do. I was surprised to see it fail on some...
When using libcst to add types, we often want to add imports in a conditional `if TYPE_CHECKING` block, to avoid circular imports or improve performance. It would be great to...
fixit (ufmt and pyre-check) depends on libcst (as they should) example: https://github.com/Instagram/Fixit/blob/main/pyproject.toml#L29 but this means that if libcst depends on fixit (or the others), it should do it in a...
Consider the following code: ```python MATCHER = m.FunctionDef(name=m.Name("__init__")) class MyVisitor(...): ... @m.leave(MATCHER) def mutate_init( self, original_node: cst.FunctionDef, updated_node: cst.FunctionDef ) -> cst.FlattenSentinel[cst.FunctionDef]: ... ``` This raises the following exception: `TypeError:...