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
As is being tracked here, we do not get docstrings in our reference API for abstract methods that are set by child classes, i.e.,
classDiscretionaryTrip(ABC):
...
@abstractmethoddefchoose_destination(self) ->str:
"""Selects a destination for the discretionary activity. Returns: str: Selected destination zone name. """classDiscretionaryTripOD(DiscretionaryTrip):
...
defchoose_destination(self) ->str:
zone=sample_weighted(self.destination_p)
area=self._od.labels.destination_zones[zone]
returnarea
Python passes the abstract method docstring down to the child class (help(my_discretionary_trip_od_model.choose_destination) will return the expected docstring), but this isn't the case in the docs:
Description
As is being tracked here, we do not get docstrings in our reference API for abstract methods that are set by child classes, i.e.,
Python passes the abstract method docstring down to the child class (
help(my_discretionary_trip_od_model.choose_destination)
will return the expected docstring), but this isn't the case in the docs:Related links
Version
0.2
Proposed change
Repeat docstring in child class methods until mkdocstrings/griffe#96 is fixed.
The text was updated successfully, but these errors were encountered: