[pull] master from alexmojaki:master#21
Merged
pull[bot] merged 180 commits intoMu-L:masterfrom Dec 1, 2022
Merged
Conversation
* This provides a new implementation, which uses co_positions() to lookup the ast node.
* It has a simpler implementation and better performance.
* Some limitations in the unit tests are removed for 3.11.
* support for `and` and `or`
* no ambiguities for generators
TODO: there are still problems due to bugs in the current cpython 3.11.0b4
open issues: * some methods are still not found * expressions in format strings this known problems are added to test_main and ignored for now.
* removed _colletctions.py from tests * added sample_results for _parser.py and datetime.py * changed some tests where the new algorithm finds results
Use only pytest
Co-authored-by: Alex Hall <alex.mojaki@gmail.com>
Co-authored-by: Alex Hall <alex.mojaki@gmail.com>
Add typing support
Use new asttokens.ASTText
Tests don't work with asttokens<2.1.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot]
Can you help keep this open source service alive? 💖 Please sponsor : )