-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[releases/2.1] Cherry-pick: [High Priority] Fix Path type conversion …
…and type hints for client codegen (#952) [High Priority] Fix Path type conversion and type hints for client codegen (#931) * generator: Fix Path type conversion for client outputs * generator: Annotate array configuration parameters as Iterable[T] and array output parameters as Sequence[T] * generator: Fix lint errors * service: Fix lint errors * service: Revert debugging code * service: Simplify convert_paths_to_strings and convert_strings_to_paths * generator: Simplify client imports `from typing import big, list, of, things` results in a lot of conditional code. It's simpler to use `import typing` and reference `typing.Iterable`, etc. * generator: Use pathlib.PurePath for configuration parameters * generator: Fix lint errors * generator: Move path conversion and dict/list conversion into client_support module * service: Fix parameter name in client_support * service: Update client_support to use type specialization constants (cherry picked from commit 6e0aedb)
- Loading branch information
Showing
6 changed files
with
338 additions
and
217 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
Oops, something went wrong.