Fix markup.
This commit is contained in:
parent
ab1a60f08c
commit
fc58b77335
|
@ -628,7 +628,7 @@ Module level helper functions
|
|||
|
||||
If you need to know if a class is an instance of a dataclass (and
|
||||
not a dataclass itself), then add a further check for ``not
|
||||
isinstance(obj, type)``:
|
||||
isinstance(obj, type)``::
|
||||
|
||||
def is_dataclass_instance(obj):
|
||||
return is_dataclass(obj) and not isinstance(obj, type)
|
||||
|
|
Loading…
Reference in New Issue