mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-13 10:26:53 +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 = []
|
states = []
|
||||||
childs = []
|
childs = []
|
||||||
|
|
||||||
|
cls._group_name = name
|
||||||
|
|
||||||
for name, prop in namespace.items():
|
for name, prop in namespace.items():
|
||||||
|
|
||||||
if isinstance(prop, State):
|
if isinstance(prop, State):
|
||||||
|
|
@ -64,7 +66,6 @@ class MetaStatesGroup(type):
|
||||||
prop._parent = cls
|
prop._parent = cls
|
||||||
# continue
|
# continue
|
||||||
|
|
||||||
cls._group_name = name
|
|
||||||
cls._parent = None
|
cls._parent = None
|
||||||
cls._childs = tuple(childs)
|
cls._childs = tuple(childs)
|
||||||
cls._states = tuple(states)
|
cls._states = tuple(states)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue