From f6c65df10f057066569f09cd4214392f21185645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82?= <23004737+rafrafek@users.noreply.github.com> Date: Fri, 1 Dec 2023 17:03:15 +0100 Subject: [PATCH] Avoid shadowing important built-ins --- kubernetes/base/watch/watch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubernetes/base/watch/watch.py b/kubernetes/base/watch/watch.py index 71fd459191..a91fb95821 100644 --- a/kubernetes/base/watch/watch.py +++ b/kubernetes/base/watch/watch.py @@ -139,8 +139,8 @@ def stream(self, func, *args, **kwargs): v1 = kubernetes.client.CoreV1Api() watch = kubernetes.watch.Watch() for e in watch.stream(v1.list_namespace, resource_version=1127): - type = e['type'] - object = e['object'] # object is one of type return_type + type_ = e['type'] + object_ = e['object'] # object is one of type return_type raw_object = e['raw_object'] # raw_object is a dict ... if should_stop: