Files
pydantic/docs
Jim Kring 08f7cf63c9 config variable to raise UserWarning if model not fully defined (#4882)
* 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>
2023-01-04 19:23:39 +00:00
..
2022-11-22 22:28:51 +00:00
2022-08-12 11:09:49 +01:00
2022-08-12 11:09:49 +01:00
2021-02-25 20:24:28 +00:00
2019-10-14 16:40:25 +01:00
2019-10-07 17:19:01 +01:00
2022-11-22 22:28:51 +00:00
2019-10-07 17:19:01 +01:00