Skip to content

Explicitly state forward refs resolution behavior

Pre-release
Pre-release

Choose a tag to compare

@surenkov surenkov released this 12 Sep 16:46
· 208 commits to master since this release

I'm considering current behavior with forward references resolution as expected. I.e. field schemas should be always defined before field declaration, otherwise it's not possible to bind a schema to the field during model initialzation. Note though, that annotation should still be declared as string/typing.ForwardRef, as long as prior constraint is satisfied. Main change: now such behavior is explicitly stated with tests.