We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The shlex splitter hangs with None as input, so config("FOO", default=None, cast=Csv()) hangs the application.
shlex
None
config("FOO", default=None, cast=Csv())
I expected it to return an empty list. I think Csv()(None) should return [] because if it was a required config, it would fail before.
Csv()(None)
[]
from decouple import Csv Csv()(None) # it hangs
To understand what was hanging, I tried it:
from shlex import shlex splitter = shlex(None, posix=True) list(splitter) # it hangs
Based on docs:
Since the split() function instantiates a shlex instance, passing None for s will read the string to split from standard input.)
The text was updated successfully, but these errors were encountered:
afa46b1
Merge pull request #150 from iurisilvio/fix-csv-none
f9a7a15
Fixed #149 Csv with None should return an empty list.
No branches or pull requests
The
shlex
splitter hangs withNone
as input, soconfig("FOO", default=None, cast=Csv())
hangs the application.I expected it to return an empty list. I think
Csv()(None)
should return[]
because if it was a required config, it would fail before.To understand what was hanging, I tried it:
Based on docs:
The text was updated successfully, but these errors were encountered: