mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
08f7cf63c9
* added config var warn_on_undefined_types raises a UserWarning if model not fully defined and will need rebuild * black formatting * use | instead of Optional[] * suppress undefined types warning in existing tests * ran pre-commit to fix linting * changed to use Optional since | failing in CI * changes following initial code review * added some preliminary documentation * fix linting * fixed linting * fixed linting * assert model partially built when suppressing warn * moved check for ForwardRef into existing for loop * change assertion to dict instead of json * cleanup of undefined_types_warning tests and docs * Update docs/examples/types_undefined_warning.py * Update docs/examples/types_undefined_warning.py * fix EOL (trim trailing whitespace) lint error Co-authored-by: Samuel Colvin <s@muelcolvin.com>