MCPcopy
hub / github.com/danielgtaylor/python-betterproto / enum_field

Function enum_field

src/betterproto/__init__.py:223–224  ·  view source on GitHub ↗
(number: int, group: Optional[str] = None, optional: bool = False)

Source from the content-addressed store, hash-verified

221
222
223def enum_field(number: int, group: Optional[str] = None, optional: bool = False) -> Any:
224 return dataclass_field(number, TYPE_ENUM, group=group, optional=optional)
225
226
227def bool_field(number: int, group: Optional[str] = None, optional: bool = False) -> Any:

Callers

nothing calls this directly

Calls 1

dataclass_fieldFunction · 0.85

Tested by

no test coverage detected