LibCST icon indicating copy to clipboard operation
LibCST copied to clipboard

A concrete syntax tree parser and serializer library for Python that preserves many aspects of Python's abstract syntax tree

Results 195 LibCST issues
Sort by recently updated
recently updated
newest added

:wave: I know there's a line in the [README](https://github.com/Instagram/LibCST/blob/a3f5bf97d631e79c3395a249e15645cfbc225a4d/native/libcst/README.md?plain=1#L10) about publishing to `crates.io`, but I just wanted to upvote it and couldn't find a better avenue to do so. We...

enhancement

I'm trying to extract functions that are not nested within other functions, and it seemed like `matchers.call_if_not_inside` would be the perfect tool - however, the code below results in nothing...

https://github.com/Instagram/LibCST/blob/f8a9b80d9e05f0e14f3a68b0a6a5767a95184fa4/pyproject.toml#L72

Use Python 3.12 to do most actions in CI

CLA Signed

Passing this on from https://github.com/HypothesisWorks/hypothesis/issues/3759: ```python # repro.py import libcst source = "def f(*):\n pass\n" libcst.parse_module(source) compile(source, "", "exec") # for comparison ``` ```python-traceback $ python repro.py Traceback (most recent...

enhancement
parsing

The following legal code errors on the Rust parser, but not the Python one: ```py (n): int = 1 ``` ```console $ python -m libcst.tool print tmp.py ``` ```pytb Traceback...

bug
parsing

How do I get `` `value` visited `` to display below? ```python import libcst as cst class A(cst.CSTVisitor): def visit_Name_value(self, node: cst.Name) -> None: print("`value` visited") def visit_Name_lpar(self, node: cst.Name)...

I am trying to parse in the source files of the standard library. When I get to Lib/pydoc_data/topics.py I encounter issues. The native parser of LibCST causes stack overflow on...

parsing

Latest Python version allows to change: ```py def foo() -> "A": ... ``` into: ```py from __future__ import annotations def foo() -> A: ... ``` It would be nice if...

enhancement
codemod

Bumps [paste](https://github.com/dtolnay/paste) from 1.0.9 to 1.0.14. Release notes Sourced from paste's releases. 1.0.14 Documentation improvements 1.0.13 Add no-alloc category to crates.io metadata 1.0.12 Set html_root_url attribute 1.0.11 Documentation improvements 1.0.10...

CLA Signed
dependencies
rust