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
Since Python 3.9, the standard collections work as generics. I sometimes like to create aliases for parameterized types of standard collections to facilitate typing other objects. Unfortunately, the output of pdoc is very verbose in this case. It's much more sparse if I use the "old" generics from the typing module. See the following example:
fromtypingimportDictFirstDict=dict[str, str]
"""Shows as a class in pdoc with all methods of a dictionary."""SecondDict=Dict[str, str]
"""Shows as a variable in pdoc with no methods."""
Is there a way to make pdoc render the version with the dict just as the version with the Dict?
By the way, thank you for reviving pdoc! 🌹
The text was updated successfully, but these errors were encountered:
Since Python 3.9, the standard collections work as generics. I sometimes like to create aliases for parameterized types of standard collections to facilitate typing other objects. Unfortunately, the output of pdoc is very verbose in this case. It's much more sparse if I use the "old" generics from the typing module. See the following example:
Is there a way to make pdoc render the version with the
dict
just as the version with theDict
?By the way, thank you for reviving pdoc! 🌹
The text was updated successfully, but these errors were encountered: