We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
kubernetes-stubs/kubernetes-stubs/client/__init__.pyi
Line 99 in 15ad121
This needs to be from kubernetes.client.api_client import ApiClient as ApiClient, or you get:
from kubernetes.client.api_client import ApiClient as ApiClient
src/toil/batchSystems/kubernetes.py:215:22: error: Module has no attribute "ApiClient" [attr-defined] api_client = kubernetes.client.ApiClient()
This is when I import kubernetes and when I import kubernetes.client.
import kubernetes
import kubernetes.client
The text was updated successfully, but these errors were encountered:
I have the same issue. I also found two more issues when running mypy on our code:
from kubernetes import config config.list_kube_config_contexts()
Gives: error: Module has no attribute "list_kube_config_contexts"
from kubernetes import config config.new_client_from_config(context=self.context["name"])
Gives: error: Module has no attribute "new_client_from_config"
Sorry, something went wrong.
No branches or pull requests
kubernetes-stubs/kubernetes-stubs/client/__init__.pyi
Line 99 in 15ad121
This needs to be
from kubernetes.client.api_client import ApiClient as ApiClient
, or you get:This is when I
import kubernetes
and when Iimport kubernetes.client
.The text was updated successfully, but these errors were encountered: