/
woodpecker86
/
cosmic-python-code
Обзор
Документация
Войти
/
woodpecker86
/
cosmic-python-code
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/allocation/domain/events.py
26 строк
330 B
Harry
make sure deallocation fixes view model too [deallocation_to_readmodel]
01 мар 2024, 18:05
01 мар 2024, 18:05
2693a17
Код
Авторство
О чём код?
# pylint: disable=too-few-public-methods from dataclasses import dataclass class Event: pass @dataclass class Allocated(Event): orderid: str sku: str qty: int batchref: str @dataclass class Deallocated(Event): orderid: str sku: str qty: int @dataclass class OutOfStock(Event): sku: str