
* use better typing for on_load * make app dataclass * get it right pyright * make lifespan into a dataclass
16 lines
317 B
Python
16 lines
317 B
Python
"""Default mixin for all app mixins."""
|
|
|
|
import dataclasses
|
|
|
|
|
|
@dataclasses.dataclass
|
|
class AppMixin:
|
|
"""Define the base class for all app mixins."""
|
|
|
|
def _init_mixin(self):
|
|
"""Initialize the mixin.
|
|
|
|
Any App mixin can override this method to perform any initialization.
|
|
"""
|
|
...
|