Improved Scene handler and action inheritance mechanism (#1585)

* #1583 Improved Scene handler and action inheritance mechanism

Enhanced the inheritance of handlers and actions in scenes. Refactored to eliminate the copying of previously connected handlers and actions from parent scenes. Now, handlers are dynamically rebuilt based on the current class, properly utilizing class inheritance and enabling handler overrides.

* Added more tests

* Added more tests for non-function handlers
This commit is contained in:
Alex Root Junior 2024-10-06 16:37:18 +03:00 committed by GitHub
parent 080878be86
commit 1dbdcf0516
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 125 additions and 9 deletions

5
CHANGES/1583.feature.rst Normal file
View file

@ -0,0 +1,5 @@
Enhanced the inheritance of handlers and actions in :ref:`Scenes <Scenes>`.
Refactored to eliminate the copying of previously connected handlers and actions from parent scenes.
Now, handlers are dynamically rebuilt based on the current class, properly utilizing class inheritance and enabling handler overrides.
That's mean that you can now override handlers and actions in the child scene, instead of copying and duplicating them.