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

only first overloaded signature shown for __init__ #260

Closed
joelberkeley opened this issue Jan 6, 2021 · 0 comments
Closed

only first overloaded signature shown for __init__ #260

joelberkeley opened this issue Jan 6, 2021 · 0 comments

Comments

@joelberkeley
Copy link

joelberkeley commented Jan 6, 2021

Thanks for adding support for overloaded methods as requested in #217 . However I'm not seeing it for all overloads of __init__. Only the first is shown. In my case, I have

class Box:
    @overload
    def __init__(self, lower: List[float], upper: List[float]):
        ...

    @overload
    def __init__(self, lower: tf.Tensor, upper: tf.Tensor):
        ...

    def __init__(self, lower: Union[tf.Tensor, List[float]], upper: Union[tf.Tensor, List[float]]):
        """foobar"""

and I'm seeing

class Box(lower: List[float], upper: List[float])

but no mention of the other variants

this is with sphinx-autoapi==1.5.1

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