You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since doc.method_source also contains the docstring, this condition is also satisfied if "yield" occurs in the docstring (where it might be used as a regular word).
I have encountered this bug in a function that did not contain a yield and it took me quite a while to figure out what was wrong.
The text was updated successfully, but these errors were encountered:
Also fires a false alarm when there is a generator nested within the function, or when a variable name includes "yield". Rather we should be using inspect.isgeneratorfunction
Hello!
The validation check YD01 is not implemented properly. The specific code in
validate.py
is the following:numpydoc/numpydoc/validate.py
Line 599 in f33a53e
Since
doc.method_source
also contains the docstring, this condition is also satisfied if "yield" occurs in the docstring (where it might be used as a regular word).I have encountered this bug in a function that did not contain a
yield
and it took me quite a while to figure out what was wrong.The text was updated successfully, but these errors were encountered: