-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: update python helpers docs #184
Conversation
explorer.find_imports()[1].is_equivalent("from math import factorial as f") | ||
``` | ||
|
||
#### `find_comps` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be helpful to tell what is comps
referring to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and a sort of lexicon about the various parts of a comprehension
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these will be useful, thank you!
@@ -439,6 +620,12 @@ Node("x = 1").has_variable("x") # True | |||
Node("def foo():\n pass").has_function("foo") # True | |||
``` | |||
|
|||
#### `has_stmt` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is stmt? can you add a word that can be found with Ctrl+F if needed?
explorer.find_function("foo").has_return("True") # True | ||
explorer.find_function("foo").find_ifs()[0].has_return("False") # True | ||
``` | ||
|
||
#### `has_returns` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this have some words about how it is about return types?
explorer.find_imports()[1].is_equivalent("from math import factorial as f") | ||
``` | ||
|
||
#### `find_comps` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and a sort of lexicon about the various parts of a comprehension
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are quite helpful, thank you for working on these @Dario-DC 🎉
Checklist:
Update index.md
)Closes #XXXXX