From 53ecea83ace7c8e6f6b10b14d6c411db004e6f30 Mon Sep 17 00:00:00 2001 From: Kaxil Naik Date: Wed, 18 Nov 2020 01:01:19 +0000 Subject: [PATCH] Fix docstrings for Kubernetes Backcompat module (#12422) This were missed in https://github.com/apache/airflow/pull/12384 GitOrigin-RevId: bc4bb30588607b10b069ab63ddf2ba7b7ee673ed --- airflow/providers/cncf/kubernetes/backcompat/volume.py | 7 +++---- .../providers/cncf/kubernetes/backcompat/volume_mount.py | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/airflow/providers/cncf/kubernetes/backcompat/volume.py b/airflow/providers/cncf/kubernetes/backcompat/volume.py index d771b5dcd9a..cbfe89deaa4 100644 --- a/airflow/providers/cncf/kubernetes/backcompat/volume.py +++ b/airflow/providers/cncf/kubernetes/backcompat/volume.py @@ -36,9 +36,8 @@ def __init__(self, name, configs): :param name: the name of the volume mount :type name: str - :param configs: dictionary of any features needed for volume. - We purposely keep this vague since there are multiple volume types with changing - configs. + :param configs: dictionary of any features needed for volume. We purposely keep this + vague since there are multiple volume types with changing configs. :type configs: dict """ self.name = name @@ -48,7 +47,7 @@ def to_k8s_client_obj(self) -> k8s.V1Volume: """ Converts to k8s object. - :return Volume Mount k8s object + :return: Volume Mount k8s object """ resp = k8s.V1Volume(name=self.name) for k, v in self.configs.items(): diff --git a/airflow/providers/cncf/kubernetes/backcompat/volume_mount.py b/airflow/providers/cncf/kubernetes/backcompat/volume_mount.py index 354d6453016..747dc84ea2b 100644 --- a/airflow/providers/cncf/kubernetes/backcompat/volume_mount.py +++ b/airflow/providers/cncf/kubernetes/backcompat/volume_mount.py @@ -55,7 +55,7 @@ def to_k8s_client_obj(self) -> k8s.V1VolumeMount: """ Converts to k8s object. - :return Volume Mount k8s object + :return: Volume Mount k8s object """ return k8s.V1VolumeMount( name=self.name, mount_path=self.mount_path, sub_path=self.sub_path, read_only=self.read_only