Skip to content
Snippets Groups Projects
Commit fd4d12a7 authored by Eric V. Smith's avatar Eric V. Smith
Browse files

Add docstring for isdataclass.

parent 571eb025
Branches
Tags
No related merge requests found
......@@ -519,6 +519,8 @@ def fields(cls):
def isdataclass(obj):
"""Returns True if obj is an instance of a Data Class, otherwise
returns False"""
return not isinstance(obj, type) and hasattr(obj, _MARKER)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment