traveler.AbstractStore.register_table#
- classmethod AbstractStore.register_table(table, *, name=None)[source]#
Register a new table in the store.
This allows the store to recognize and validate tables of this type.
- Parameters:
table (type) – The table to register.
name (str | None)
- Returns:
The registered table type, allowing use as a class decorator.
- Return type:
type
- Raises:
TypeError – If
tableis not a working-table type ornameconflicts with an existing class attribute.