-
-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Field a generic type; refactor inheritance hierarchies (#2725)
* Make Field a generic type; refactor inheritance hierarchies * Remove invalid tests and fix temporal fields * Attempt to fix py39 * More py39 fixes * Remove unnecessary _serialize override in Boolean * Remove unnecessary _serialize override in String * Revert "Remove unnecessary _serialize override in String" This reverts commit b4f4718. * Update Field docstring to be accurate * Update usages of fields.Field in exampples and tests * Add overrides to specify when None vs internal type is returned * Explicitly document fields that shouldn't be used within schemas * Update upgrading guide * Fix typo * Remove 'Base', for consistency with other base classes
- Loading branch information
Showing
13 changed files
with
397 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.