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 table is not a working-table type or name conflicts with an existing class attribute.