MCPcopy Create free account
hub / github.com/MARIO-Math-Reasoning/Super_MARIO / StrEnumMeta

Class StrEnumMeta

mcts_math/config.py:13–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12
13class 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
21class StrEnum(Enum, metaclass=StrEnumMeta):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected