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
Hi! I couldn't find any other mention of this, so probably I'm doing something wrong.
I have a settings class inheriting from BaseSettings, and when instantiating it with a no-parameter constructor, mypy complains that arguments are missing. Is this something that the pydantic.mypy plugin handles? Unfortunately, I can't use that, because for some reason it makes mypy crash. Is there another workaround than providing dummy default values for everything?
The text was updated successfully, but these errors were encountered:
$ mypy app/cli/__main__.py # without plugin
app/cli/__main__.py:18: error: Missing named argument "bot_token" for "Config" [call-arg]
Found 1 error in 1 file (checked 1 source file)
$ mypy app/cli/__main__.py # with plugin
Success: no issues found in 1 source file
Hi! I couldn't find any other mention of this, so probably I'm doing something wrong.
I have a settings class inheriting from BaseSettings, and when instantiating it with a no-parameter constructor, mypy complains that arguments are missing. Is this something that the pydantic.mypy plugin handles? Unfortunately, I can't use that, because for some reason it makes mypy crash. Is there another workaround than providing dummy default values for everything?
The text was updated successfully, but these errors were encountered: