-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
events: Add backwards compatibility for old event names
In 8c54bb1 and e7567d4 basic event names were refactored. As this is the first change of the most stable part of mutwo since its inception four years ago, this may lead to the biggest breaking dependents of 'mutwo.core'. To make the migration to 'mutwo.core > 2.0.0' easier we therefore add pointers to the old events names. We don't add a pointer to the deprecated 'ComplexEvent', as this is barely used outside of 'mutwo.core' and therefore has a much lower necessity. This patch also adds a 'deprecated' decorator, that functions similar to the new 'deprecated' decorator in python3.13 [1]. Once we are using python 3.13, we can therefore replace the 'core_utilities.deprecated' decorator with the more powerful and more clever implemented builtin version. [1] https://docs.python.org/3.13/library/warnings.html#warnings.deprecated
- Loading branch information
1 parent
e7567d4
commit ed95225
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters