Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[releases/2.1] Cherry-pick: [High Priority] Fix Path type conversion and type hints for client codegen #952

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

bkeryan
Copy link
Collaborator

@bkeryan bkeryan commented Sep 27, 2024

What does this Pull Request accomplish?

Cherry-pick #931 into releases/2.1.

…degen (#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)
Copy link

Test Results

    40 files  ± 0      40 suites  ±0   53m 20s ⏱️ + 2m 11s
   700 tests + 2     700 ✅ + 2      0 💤 ±0  0 ❌ ±0 
17 000 runs  +20  15 930 ✅ +20  1 070 💤 ±0  0 ❌ ±0 

Results for commit 250879d. ± Comparison against base commit 7c19d3c.

@bkeryan bkeryan merged commit 7df18c2 into releases/2.1 Sep 27, 2024
17 checks passed
@bkeryan bkeryan deleted the users/bkeryan/cherry-pick-fix-client-types branch September 27, 2024 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant