MCPcopy Create free account
hub / github.com/PyTables/PyTables / _get_enum_map

Method _get_enum_map

tables/table.py:1024–1030  ·  view source on GitHub ↗

Return mapping from enumerated column names to `Enum` instances.

(self)

Source from the content-addressed store, hash-verified

1022 ]
1023
1024 def _get_enum_map(self) -> dict[str, Enum]:
1025 """Return mapping from enumerated column names to `Enum` instances."""
1026 enum_map = {}
1027 for colobj in self.description._f_walk("Col"):
1028 if colobj.kind == "enum":
1029 enum_map[colobj._v_pathname] = colobj.enum
1030 return enum_map
1031
1032 def _g_create(self) -> int:
1033 """Create a new table on disk."""

Callers 1

Calls 1

_f_walkMethod · 0.80

Tested by

no test coverage detected