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 types with more than one type parameter, such as typing.Tuple, typing.Union or custom types
class Foo(Generic[T, U]): pass
arguments and return value types aren't fully qualified for the type parameters. For example, in
def bar(x: Foo[A, B], y: A) -> Foo[C, D]:
...
A, B, C and D aren't being expanded in Foo[...] but are being expanded and linked when on their own, such as in y: A. Note: for builtins/locals, links are being made, e.g. in Mapping[str, A], str is being linked
The text was updated successfully, but these errors were encountered:
joelberkeley
changed the title
Types are not fully qualified in types with more than one type parameter
Types parameters are not fully qualified when there is more than one type parameter
Feb 7, 2021
For types with more than one type parameter, such as
typing.Tuple
,typing.Union
or custom typesarguments and return value types aren't fully qualified for the type parameters. For example, in
A, B, C and D aren't being expanded in
Foo[...]
but are being expanded and linked when on their own, such as iny: A
. Note: for builtins/locals, links are being made, e.g. inMapping[str, A]
,str
is being linkedversions
sphinx-autoapi 0.17.0
pydata-sphinx-theme 0.4.3
Sphinx 3.4.3
The text was updated successfully, but these errors were encountered: