-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
docutils: complete nodes.Node & bump version to 0.18.* #7380
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
Conversation
4d07403
to
f26aeff
Compare
The version bump is necessary because Node.findall() was introduced in 0.18.1.
541e973
to
1eaa0ab
Compare
question I had because I misread the error messagePassing a type as the @overload
def findall(self, condition: type[_N], ...) -> Generator[_N, None, None]: ...
@overload
def findall(self, condition: Callable[[Node], bool] = ..., ...) -> Generator[Node, None, None]: ... I intentionally omitted the Omitting the default value for the first overload however results in
What do you suggest? Inferring Sidenote: I unfortunately cannot check if mypy infers the same because of python/mypy#12241. |
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.
Didn't read most of the PR yet, but this should answer your question.
You can set the MYPYPATH environment variable:
|
75f35e0
to
3edfc72
Compare
3edfc72
to
a511354
Compare
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.
Thanks, a few notes below.
c6f84cf
to
c897c82
Compare
12da6c2
to
071fa17
Compare
471c09f
to
041ddaa
Compare
The version bump is necessary because
Node.findall() was introduced in 0.18.1.