2025-07-27 14:11:42 +02:00
|
|
|
from typing import Any
|
|
|
|
|
|
2026-06-10 13:28:35 +02:00
|
|
|
class Bunch: # export
|
2025-07-27 14:11:42 +02:00
|
|
|
|
|
|
|
|
def __init__(self, **kwargs):
|
|
|
|
|
self.__dict__.update(kwargs)
|
|
|
|
|
|
|
|
|
|
def __getitem__(self, key: str) -> Any:
|
|
|
|
|
return self.__dict__[key]
|