| 1513 | |
| 1514 | |
| 1515 | class StrEnumField(_StrEnumField, StrField): |
| 1516 | __slots__ = ["enum"] |
| 1517 | |
| 1518 | def __init__( |
| 1519 | self, |
| 1520 | name, # type: str |
| 1521 | default, # type: bytes |
| 1522 | enum=None, # type: Optional[Dict[str, str]] |
| 1523 | **kwargs # type: Any |
| 1524 | ): |
| 1525 | # type: (...) -> None |
| 1526 | StrField.__init__(self, name, default, **kwargs) # type: ignore |
| 1527 | self.enum = enum |
| 1528 | |
| 1529 | |
| 1530 | K = TypeVar('K', List[BasePacket], BasePacket, Optional[BasePacket]) |
no outgoing calls
no test coverage detected
searching dependent graphs…