diff --git a/airflow/providers/airbyte/hooks/airbyte.py b/airflow/providers/airbyte/hooks/airbyte.py index 0aeb4f887f321..81d4a0523c1d5 100644 --- a/airflow/providers/airbyte/hooks/airbyte.py +++ b/airflow/providers/airbyte/hooks/airbyte.py @@ -87,7 +87,7 @@ def submit_sync_connection(self, connection_id: str) -> Any: Submits a job to a Airbyte server. :param connection_id: Required. The ConnectionId of the Airbyte Connection. - :type connectiond_id: str + :type connection_id: str """ return self.run( endpoint=f"api/{self.api_version}/connections/sync", diff --git a/airflow/utils/timezone.py b/airflow/utils/timezone.py index 3245fac5000cc..798c723da8723 100644 --- a/airflow/utils/timezone.py +++ b/airflow/utils/timezone.py @@ -169,5 +169,6 @@ def parse(string: str, timezone=None) -> DateTime: Parse a time string and return an aware datetime :param string: time string + :param timezone: the timezone """ return pendulum.parse(string, tz=timezone or TIMEZONE, strict=False) # type: ignore diff --git a/docs/exts/docroles.py b/docs/exts/docroles.py index a1ac0cb2ecbee..f12f493bd4ee6 100644 --- a/docs/exts/docroles.py +++ b/docs/exts/docroles.py @@ -32,6 +32,7 @@ def get_template_field(env, fullname): """ Gets template fields for specific operator class. + :param env: env config :param fullname: Full path to operator class. For example: ``airflow.providers.google.cloud.operators.vision.CloudVisionCreateProductSetOperator`` :return: List of template field diff --git a/docs/exts/docs_build/errors.py b/docs/exts/docs_build/errors.py index 3fe9f36d810b3..e334d0800e3c4 100644 --- a/docs/exts/docs_build/errors.py +++ b/docs/exts/docs_build/errors.py @@ -87,6 +87,7 @@ def parse_sphinx_warnings(warning_text: str, docs_dir: str) -> List[DocBuildErro Parses warnings from Sphinx. :param warning_text: warning to parse + :param docs_dir: documentation directory :return: list of DocBuildErrors. """ sphinx_build_errors = [] diff --git a/docs/exts/docs_build/spelling_checks.py b/docs/exts/docs_build/spelling_checks.py index 24ce3f170584f..4da70c11894ba 100644 --- a/docs/exts/docs_build/spelling_checks.py +++ b/docs/exts/docs_build/spelling_checks.py @@ -85,6 +85,7 @@ def parse_spelling_warnings(warning_text: str, docs_dir: str) -> List[SpellingEr Parses warnings from Sphinx. :param warning_text: warning to parse + :param docs_dir: documentation directory :return: list of SpellingError. """ sphinx_spelling_errors = [] diff --git a/tests/core/test_core_to_contrib.py b/tests/core/test_core_to_contrib.py index dcac2403f15b9..2973702a86ad4 100644 --- a/tests/core/test_core_to_contrib.py +++ b/tests/core/test_core_to_contrib.py @@ -55,7 +55,8 @@ def skip_test_with_mssql_in_py38(self, path_a="", path_b=""): @staticmethod def get_class_from_path(path_to_class, parent=False): """ - :param parent indicates if "path_to_class" arg is super class + :param path_to_class: the path to the class + :param parent: indicates if "path_to_class" arg is super class """ path, _, class_name = path_to_class.rpartition(".") diff --git a/tests/core/test_logging_config.py b/tests/core/test_logging_config.py index c514b0832d18d..5e0c7de01741d 100644 --- a/tests/core/test_logging_config.py +++ b/tests/core/test_logging_config.py @@ -131,6 +131,8 @@ def settings_context(content, directory=None, name='LOGGING_CONFIG'): :param content: The content of the settings file + :param directory: the directory + :param name: str """ initial_logging_config = os.environ.get("AIRFLOW__LOGGING__LOGGING_CONFIG_CLASS", "") try: