We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8634761 commit af36c85Copy full SHA for af36c85
src/fieldz/_types.py
@@ -31,9 +31,10 @@
31
32
class _MISSING_TYPE(enum.Enum):
33
MISSING = "MISSING"
34
+ __doc__ = None
35
36
def __repr__(self) -> str:
- return self.value
37
+ return str(self.value)
38
39
40
@dataclasses.dataclass(**DC_KWARGS)
tests/test_fieldz.py
@@ -256,3 +256,9 @@ class Model(TypedDict):
256
Field(name="d", type=bool),
257
Field(name="e", type=list[int]),
258
)
259
+
260
261
+def test_missing_has_no_doc() -> None:
262
+ """MISSING.__doc__ should be None, not inherited enum doc. gh-41."""
263
+ assert Field.MISSING.__doc__ is None
264
+ assert getattr(Field.MISSING, "__doc__", None) is None
0 commit comments