8 lines
179 B
Python
8 lines
179 B
Python
from ...models import Command
|
|
from .descriptors import mapping
|
|
|
|
commands: dict[str, Command] = {}
|
|
|
|
for descriptor in mapping:
|
|
commands.update({ descriptor.cmd: descriptor })
|