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
For example this code means pytest-examples doesn't find examples later in the file:
def_getattr_no_parents(obj: Any, attribute: str) ->Any:
"""Returns the attribute value without attempting to look up attributes from parent types."""ifhasattr(obj, '__dict__'):
try:
returnobj.__dict__[attribute]
exceptKeyError:
pass
pytest-examples gets very messed up by single line docstrings, and starts finding the python code between docstrings, not the docstrings.
This results in examples being missed.
The text was updated successfully, but these errors were encountered: