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
Describe the bug Foo[int] is shown as Foo[int][int]
To Reproduce
Steps to reproduce the behavior:
In [6]: from typing import Generic, TypeVar
In [7]: T = TypeVar('T')
In [8]: class Foo(Generic[T]): pass
In [11]: sphinx.util.typing.stringify(Foo[int])
Out[11]: '__main__.Foo[int][int]'
Expected behavior
The output should be __main__.Foo[int]
Environment info
OS: Windows 10
Python version: 3.8.0
Sphinx version: 3.0.2
The text was updated successfully, but these errors were encountered:
Describe the bug
Foo[int]
is shown asFoo[int][int]
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The output should be
__main__.Foo[int]
Environment info
The text was updated successfully, but these errors were encountered: