diff --git a/kubernetes/base/watch/watch.py b/kubernetes/base/watch/watch.py index 0e39e191a9..2eda0b34f4 100644 --- a/kubernetes/base/watch/watch.py +++ b/kubernetes/base/watch/watch.py @@ -19,7 +19,7 @@ from kubernetes import client PYDOC_RETURN_LABEL = ":rtype:" -PYDOC_FOLLOW_PARAM = ":param bool follow:" +PYDOC_FOLLOW_PARAM = ":param follow:" # Removing this suffix from return type name should give us event's object # type. e.g., if list_namespaces() returns "NamespaceList" type, diff --git a/kubernetes/base/watch/watch_test.py b/kubernetes/base/watch/watch_test.py index 07869095b6..00f855b0d0 100644 --- a/kubernetes/base/watch/watch_test.py +++ b/kubernetes/base/watch/watch_test.py @@ -204,7 +204,8 @@ def test_watch_for_follow(self): fake_api = Mock() fake_api.read_namespaced_pod_log = Mock(return_value=fake_resp) - fake_api.read_namespaced_pod_log.__doc__ = ':param bool follow:\n:rtype: str' + fake_api.read_namespaced_pod_log.__doc__ = ( + ':param follow:\n:type follow: bool\n:rtype: str') w = Watch() count = 1