We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f9e5d6 commit 236e97dCopy full SHA for 236e97d
pdoc/doc.py
@@ -259,6 +259,9 @@ def members(self) -> dict[str, Doc]:
259
qualname = f"{self.qualname}.{name}".lstrip(".")
260
taken_from = self._taken_from(name, obj)
261
262
+ # For Pydantic models, filter out all methods on the BaseModel
263
+ # class, as they are almost never relevant to the consumers of the
264
+ # inheriting model itself.
265
if (
266
_pydantic._PYDANTIC_ENABLED
267
and self.kind == "class"
0 commit comments