Closed BroFromSpace closed 2 months ago
I wonder if the dictionary parser is supposed to break when setting default=None?
default=None
from environs import Env env = Env() env.read_env() my_env=env.dict('MY_ENV', subcast_keys=str, default=None)
I believe this is symptom of #270, so let's carry on discussion there. for now i think a workaround would be to do
my_env = env.dict('MY_ENV', subcast_keys=str) or None
Thanks for your response.
I wonder if the dictionary parser is supposed to break when setting
default=None
?