Skip to content

Commit 236e97d

Browse files
committed
add note
1 parent 9f9e5d6 commit 236e97d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pdoc/doc.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,9 @@ def members(self) -> dict[str, Doc]:
259259
qualname = f"{self.qualname}.{name}".lstrip(".")
260260
taken_from = self._taken_from(name, obj)
261261

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.
262265
if (
263266
_pydantic._PYDANTIC_ENABLED
264267
and self.kind == "class"

0 commit comments

Comments
 (0)