__all__ = ['dataclass',
'field',
+ 'Field',
'FrozenInstanceError',
'InitVar',
'MISSING',
# and InitVars are also returned, but marked as such (see
# f._field_type).
- # If the default value isn't derived from field, then it's
+ # If the default value isn't derived from Field, then it's
# only a normal default value. Convert it to a Field().
default = getattr(cls, a_name, MISSING)
if isinstance(default, Field):
-from dataclasses import (
- dataclass, field, FrozenInstanceError, fields, asdict, astuple,
- make_dataclass, replace, InitVar, Field, MISSING, is_dataclass,
-)
+# Deliberately use "from dataclasses import *". Every name in __all__
+# is tested, so they all must be present. This is a way to catch
+# missing ones.
+
+from dataclasses import *
import pickle
import inspect