Skip to content
New issue

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

cannot infer type of bool False #11

Closed
samuelcolvin opened this issue May 10, 2017 · 2 comments
Closed

cannot infer type of bool False #11

samuelcolvin opened this issue May 10, 2017 · 2 comments
Labels
bug V1 Bug related to Pydantic V1.X

Comments

@samuelcolvin
Copy link
Member

class Settings(BaseSettings):
    DEBUG = False

pydantic.exceptions.ConfigError: unable to infer type for attribute "DEBUG"
@samuelcolvin
Copy link
Member Author

same with empty strings.

@samuelcolvin samuelcolvin added the bug V1 Bug related to Pydantic V1.X label May 10, 2017
@samuelcolvin
Copy link
Member Author

and 0

alexdrydew pushed a commit to alexdrydew/pydantic that referenced this issue Dec 23, 2023
* make data optional

* adding validate_assignment

* fix function validators

* WIP fixing validate assignment

* moving to extra argument for validators

* working on local rust coverage

* tweak local htmlcov directories

* more tests for validating assignment

* set location on validate assignment errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug V1 Bug related to Pydantic V1.X
Projects
None yet
Development

No branches or pull requests

1 participant