mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Previously, `Scene` handlers were registered based on the sorted output of `inspect.getmembers`, causing incorrect execution order. Now, handlers are registered in the order they are defined in the class, ensuring reliable behavior and proper sequence when handling filters with varying specificity. Added test cases to validate the correct handler ordering.
5 lines
347 B
ReStructuredText
5 lines
347 B
ReStructuredText
Resolved incorrect ordering of registered handlers in the :class:`aiogram.fsm.scene.Scene`
|
|
object caused by :code:`inspect.getmembers` returning sorted members.
|
|
Handlers are now registered in the order of their definition within the class,
|
|
ensuring proper execution sequence, especially when handling filters with different
|
|
levels of specificity.
|