mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 09:55:21 +00:00
Oops. Move name setter.
This commit is contained in:
parent
8772518fa5
commit
8a8749dd02
1 changed files with 2 additions and 1 deletions
|
|
@ -55,6 +55,8 @@ class MetaStatesGroup(type):
|
|||
states = []
|
||||
childs = []
|
||||
|
||||
cls._group_name = name
|
||||
|
||||
for name, prop in namespace.items():
|
||||
|
||||
if isinstance(prop, State):
|
||||
|
|
@ -64,7 +66,6 @@ class MetaStatesGroup(type):
|
|||
prop._parent = cls
|
||||
# continue
|
||||
|
||||
cls._group_name = name
|
||||
cls._parent = None
|
||||
cls._childs = tuple(childs)
|
||||
cls._states = tuple(states)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue