Source code for cfg4py.config

# noqa
from typing import Optional


[docs]class Config(object): __access_counter__ = 0 def __cfg4py_reset_access_counter__(self): self.__access_counter__ = 0 def __getattribute__(self, name): obj = object.__getattribute__(self, name) if name.startswith("__") and name.endswith("__"): return obj if callable(obj): return obj self.__access_counter__ += 1 return obj