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
Even when this sounds odd to have, it is an useful idiom to write context managers very easily.
importcollections.abcimportcontextlib@contextlib.contextmanagerdeff() ->collections.abc.Iterator[None]:
"""This function doesn't yield anything."""# Some some initializationyield# Some cleanupwithf():
print("I'm initialized")
print("I'm cleaned up")
$ pydoclint --style=google --check-return-types=False --check-yield-types=False --skip-checking-short-docstrings=False yieldnone.pySkipping files that match this pattern: \.git|\.toxyieldnone.pyyieldnone.py 6: DOC201: Function `f` does not have a return section in docstring 6: DOC402: Function `f` has "yield" statements, but the docstring does not have a "Yields" section
The text was updated successfully, but these errors were encountered:
The same as
Returns:
is optional if the return type isNone
, according to the google style guide it is also optional forYields:
.Even when this sounds odd to have, it is an useful idiom to write context managers very easily.
The text was updated successfully, but these errors were encountered: