@@ -88,18 +88,18 @@ def is_pydantic_v2_subclass(cls: type) -> bool:
8888 """Check if the given class is Pydantic v2-like.
8989
9090 Returns:
91- `True` if the given class is a subclass of Pydantic BaseModel 2.x.
91+ `True` if the given class is a subclass of Pydantic ` BaseModel` 2.x.
9292 """
9393 return issubclass (cls , BaseModel )
9494
9595
9696def is_basemodel_subclass (cls : type ) -> bool :
97- """Check if the given class is a subclass of Pydantic BaseModel.
97+ """Check if the given class is a subclass of Pydantic ` BaseModel` .
9898
9999 Check if the given class is a subclass of any of the following:
100100
101- * pydantic.BaseModel in Pydantic 2.x
102- * pydantic.v1.BaseModel in Pydantic 2.x
101+ * ` pydantic.BaseModel` in Pydantic 2.x
102+ * ` pydantic.v1.BaseModel` in Pydantic 2.x
103103
104104 Returns:
105105 `True` if the given class is a subclass of Pydantic `BaseModel`.
@@ -112,12 +112,12 @@ def is_basemodel_subclass(cls: type) -> bool:
112112
113113
114114def is_basemodel_instance (obj : Any ) -> bool :
115- """Check if the given class is an instance of Pydantic BaseModel.
115+ """Check if the given class is an instance of Pydantic ` BaseModel` .
116116
117117 Check if the given class is an instance of any of the following:
118118
119- * pydantic.BaseModel in Pydantic 2.x
120- * pydantic.v1.BaseModel in Pydantic 2.x
119+ * ` pydantic.BaseModel` in Pydantic 2.x
120+ * ` pydantic.v1.BaseModel` in Pydantic 2.x
121121
122122 Returns:
123123 `True` if the given class is an instance of Pydantic `BaseModel`.
0 commit comments