Skip to content

Commit 5d97c34

Browse files
committed
.
1 parent 3f47361 commit 5d97c34

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/dataclasses.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ else:
214214

215215
def fields(class_or_instance: DataclassInstance | type[DataclassInstance]) -> tuple[Field[Any], ...]: ...
216216
@overload
217+
def is_dataclass(obj: DataclassInstance) -> Literal[True]: ...
218+
@overload
217219
def is_dataclass(obj: type) -> TypeIs[type[DataclassInstance]]: ...
218220
@overload
219221
def is_dataclass(obj: object) -> TypeIs[DataclassInstance | type[DataclassInstance]]: ...

0 commit comments

Comments
 (0)