tree-sitter-python icon indicating copy to clipboard operation
tree-sitter-python copied to clipboard

Python grammar for tree-sitter

Results 70 tree-sitter-python issues
Sort by recently updated
recently updated
newest added

If I have this code: ```python def func(first, second: str, third = 7, four: int = 1): print() ``` I got the following abstract tree: ``` module [0, 0] -...

enhancement

### Did you check the tree-sitter docs? - [X] I have read all the [tree-sitter docs](https://tree-sitter.github.io/tree-sitter/using-parsers) if it relates to using the parser ### Is your feature request related to...

enhancement

### Did you check existing issues? - [X] I have read all the [tree-sitter docs](https://tree-sitter.github.io/tree-sitter/using-parsers) if it relates to using the parser - [X] I have searched the existing issues...

bug

The src/tree_sitter/ directory is not included in the sdist so if we attempt to build from it, we get compilation errors due to missing headers. This fixes the sdist.

Compile using Makefile emit error: ```shell Makefile:41: *** unterminated call to function 'shell': missing ')'. Stop ``` It looks like the '#' and its following content are parsed into a...

In this code ```py @my_decorator def foo(): return 1 ``` ``` module [0, 0] - [3, 0] decorated_definition [0, 0] - [2, 10] decorator [0, 0] - [0, 13] identifier...

Hi there, I couldn’t find an explicit note in the documentation about which Python language version this grammar currently supports. Could you clarify which Python version(s) are fully or mostly...

enhancement

Bumps [tar-fs](https://github.com/mafintosh/tar-fs) from 2.1.1 to 2.1.3. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=tar-fs&package-manager=npm_and_yarn&previous-version=2.1.1&new-version=2.1.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

dependencies
javascript