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

All functions that end up calling api_client.call_api have an async_req: bool argument that is missing from the stubs #19

Open
dolfandringa opened this issue Aug 8, 2023 · 0 comments

Comments

@dolfandringa
Copy link

dolfandringa commented Aug 8, 2023

All functions that end up calling kubernetes.client.api_client.call_api and their ancestors, have an async_req: bool argument that is used for asynchronous execution in a thread. This argument is missing from the stubs. Also ancestors of those functions (through kwargs) have that argument as well.

Currently, I get an error from pyright if I use the argument: Pyright: No parameter named "async_req" [reportGeneralTypeIssues]

So for instance all of these functions have that argument:

  • kubernetes.client.api.batch_v1_api.BatchV1Api.create_namespaced_job_with_http_info as does
  • kubernetes.client.api.batch_v1_api.BatchV1Api.create_namespaced_job
  • kubernetes.client.api.batch_v1_api.BatchV1Api.read_namespaced_job_status_with_http_info
  • kubernetes.client.api.batch_v1_api.BatchV1Api.read_namespaced_job_status
  • etc
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

No branches or pull requests

1 participant