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
classPorkline:
"""A porkline. A porkline corresponds to one example class."""type: str=None"""The porkline type"""def__init__(self, name: str) ->None:
self.name: str=name"""The porkline name"""defcompare(self, name: str) ->bool:
"""Check if the porkline's name matches the given name."""returnname==self.name
Expected Behavior
In the given example, the types of Porkline.type and self.name should be shown in the documentation.
Actual Behavior
The annotated types are missing from the documentation.
Additional info
pdoc version: 0.7.1
The text was updated successfully, but these errors were encountered:
kernc
changed the title
Class and instance variable/property types are not included in documentation
Type annotations for variables/properties
Jan 11, 2020
Example code:
Expected Behavior
In the given example, the types of
Porkline.type
andself.name
should be shown in the documentation.Actual Behavior
The annotated types are missing from the documentation.
Additional info
The text was updated successfully, but these errors were encountered: