enthought / traits

Observable typed attributes for Python classes
Other
421 stars 85 forks source link

Export event types in traits.observation.api. #1805

Open mdickinson opened 2 weeks ago

mdickinson commented 2 weeks ago

This PR exports observer event types (TraitChangeEvent, ListChangeEvent, DictChangeEvent, SetChangeEvent) in traits.observation.api, so that they can be easily used in type hints in client code.

The event types are already documented. I've updated some tests to ensure that the test suite exercises the import from test.observation.api.

Closes #1802