sloria / environs

simplified environment variable parsing
MIT License
1.21k stars 85 forks source link

Return env instance on read_env method #275

Closed zhukovgreen closed 10 months ago

zhukovgreen commented 2 years ago

This brings some convenience when initializing the env. I.e. you can use:

env = Env().read_env()
zhukovgreen commented 2 years ago

Seems like the ci failure is not related to the change

sloria commented 10 months ago

This is technically a breaking change, Env.read_env is a static methods and users may be calling it as such. I'm not sure it's worth breaking that usages, and it's not obvious that read_env should return an instance of Env. I'm going to pass on this one. Thanks anyway for the suggestion!