File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -248,12 +248,12 @@ def get_class_results(
248248 badge = attributetablebadge ("cls" , "cls" )
249249 badge ["badge-type" ] = _ ("classmethod" )
250250 elif inspect .isfunction (value ):
251- if doc .startswith (("A decorator" , "A shortcut decorator" )):
251+ if doc .startswith (("A decorator" , "A shortcut decorator" , "|deco|" )):
252252 # finicky but surprisingly consistent
253253 key = _ ("Methods" )
254254 badge = attributetablebadge ("@" , "@" )
255255 badge ["badge-type" ] = _ ("decorator" )
256- elif inspect .isasyncgenfunction (value ):
256+ elif inspect .isasyncgenfunction (value ) or doc . startswith ( "|aiter|" ) :
257257 key = _ ("Methods" )
258258 badge = attributetablebadge ("async for" , "async for" )
259259 badge ["badge-type" ] = _ ("async iterable" )
You can’t perform that action at this time.
0 commit comments