Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Types parameters are not fully qualified when there is more than one type parameter #265

Closed
joelberkeley opened this issue Feb 7, 2021 · 0 comments

Comments

@joelberkeley
Copy link

joelberkeley commented Feb 7, 2021

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

versions
sphinx-autoapi 0.17.0
pydata-sphinx-theme 0.4.3
Sphinx 3.4.3

@joelberkeley 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants