-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bugfix version stamping * Required and optional type properties added ICodeGen.typeProperties to produce the list of properties for declareType. The default is just type.properties but mypy/python requires that all required properties are declared before optional properties on a class so the python generator overrides this to provide the required properties first followed by the optional. * Python SDK: Enum support refactored serialization structure hooks to handle different types of ForwardRef objects (enum vs model object) Broke up structure_hook into reserved_kw_structure_hook and forward_ref_structure_hook fixed bug where "bare" ForwardRef annotations would bomb out on deserialization - doesn't exist in the wild yet but it probably will at some point - except that for now we always mark all API response model fields as optional because of the "fields" argument... fixed bug where "reserved_keyword_structure_hook" was not being applied to the top level Model type. reversed .python-version list so 3.8.2 is default added tox-pyenv because tox wasn't finding 3.6 on my box Co-authored-by: Joel Dodge <joeldodge@google.com>
- Loading branch information
1 parent
f4bfb84
commit 1b64e1b
Showing
20 changed files
with
9,764 additions
and
1,322 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
Oops, something went wrong.