enthought / traits

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

TraitChangeEvent and friends should be exposed in `traits.observation.api` #1785

Open mdickinson opened 3 months ago

mdickinson commented 3 months ago

The observe event classes TraitChangeEvent, DictChangeEvent, ListChangeEvent and SetChangeEvent should be exposed in traits.observation.api, at least partly so that they can be used in type annotations.

I'm not sure why we didn't do this originally; possibly we were treating those event classes as provisional, but I think the time for that is long past now.