betty.ancestry.event_type package

Submodules

Module contents

Provide Betty’s ancestry event types.

betty.ancestry.event_type.EVENT_TYPE_REPOSITORY: PluginRepository[EventType] = <betty.plugin.entry_point.EntryPointPluginRepository object>

The event type plugin repository.

Read more about Event type plugins.

class betty.ancestry.event_type.EventType[source]

Bases: Plugin

Define an betty.ancestry.event.Event type.

Read more about Event type plugins.

To test your own subclasses, use betty.test_utils.ancestry.event_type.EventTypeTestBase.

classmethod comes_after() set[type[EventType]][source]

Get the event types that this event type comes after.

The returned event types come before this event type.

classmethod comes_before() set[type[EventType]][source]

Get the event types that this event type comes before.

The returned event types come after this event type.