10 lines
241 B
Python
10 lines
241 B
Python
|
import json
|
||
|
from typing import Any
|
||
|
|
||
|
class Config:
|
||
|
def __init__(self) -> None:
|
||
|
with open("config.json", "r") as f:
|
||
|
self.params = json.load(f)
|
||
|
|
||
|
def get(self, param: str) -> Any:
|
||
|
return self.params[param]
|