| 11 | |
| 12 | |
| 13 | class StrEnumMeta(EnumMeta): |
| 14 | # this is workaround for submitit pickling leading to instance checks failing in hydra for StrEnum, see |
| 15 | # https://github.com/facebookresearch/hydra/issues/1156 |
| 16 | @classmethod |
| 17 | def __instancecheck__(cls, other): |
| 18 | return "enum" in str(type(other)) |
| 19 | |
| 20 | |
| 21 | class StrEnum(Enum, metaclass=StrEnumMeta): |
nothing calls this directly
no outgoing calls
no test coverage detected