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