You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from envclasses import EnvClassMeta
import envclasses
class MyConfig(metaclass=EnvClassMeta):
test_var: int
envclasses.os.environ["ENV_IGNORE_ERRORS"] = "yes"
envclasses.os.environ["PYENV_CLASS_REFRESH_LOAD"] = "yes"
config = MyConfig()
print(config.test_var)
config.test_var = 100
print(config.test_var)
results in:
line 38, in post_init
raise RuntimeError(F'The following environment variables are undefined: {", ".join(errors)}')
RuntimeError: The following environment variables are undefined: TEST_VAR
it doesn't seem like setting the ENV_IGNORE_ERRORS is working correctly
The text was updated successfully, but these errors were encountered:
results in:
it doesn't seem like setting the ENV_IGNORE_ERRORS is working correctly
The text was updated successfully, but these errors were encountered: