Skip to content

Fix pyright with kubernetes 37 - #4347

Merged
r4victor merged 1 commit into
masterfrom
pr_fix_kubernetes_37_pyright
Oct 7, 2026
Merged

r4victor merged 1 commit into
masterfrom
pr_fix_kubernetes_37_pyright

Conversation

@r4victor

@r4victor r4victor commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

kubernetes 37.0.0 ships py.typed, but kubernetes.utils doesn't re-export its functions (kubernetes-client/python#2724), so pyright now fails on kubernetes.utils.parse_quantity in CI.

  • Import parse_quantity from kubernetes.utils.quantity, where it's defined, which type-checks with both kubernetes 36 and 37 and no longer needs the stubs workaround.

@r4victor
r4victor merged commit 46c9e83 into master Oct 7, 2026
26 checks passed
@r4victor
r4victor deleted the pr_fix_kubernetes_37_pyright branch October 7, 2026 08:01
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