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
{{ message }}
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
It would be preferable to be able to use the full path e.g. aiohttp.web.HTTPException in an example such as:
from aiohttp import web
def foo():
"""
Raises:
aiohttp.web.HTTPException
"""
raise web.HTTPException
Currently, it only allows web.HTTPException to appear in the docstring.
If it's too tricky to get the import name, how about allowing a partial match?
e.g. It's currently matching web.HTTPException, so it would be fine if it matched anything ending in that, i.e. docstring_exception.endswith("web.HTTPException").
I guess it wouldn't help with as imports, but probably good enough most of the time.
The text was updated successfully, but these errors were encountered:
It would be preferable to be able to use the full path e.g.
aiohttp.web.HTTPException
in an example such as:Currently, it only allows
web.HTTPException
to appear in the docstring.If it's too tricky to get the import name, how about allowing a partial match?
e.g. It's currently matching
web.HTTPException
, so it would be fine if it matched anything ending in that, i.e.docstring_exception.endswith("web.HTTPException")
.I guess it wouldn't help with
as
imports, but probably good enough most of the time.The text was updated successfully, but these errors were encountered: