From 8f7aca7b6981134da13c145566b94cbb68b00a65 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Sun, 8 Jan 2023 23:59:07 +0100 Subject: [PATCH] Update pydocstyle to 6.2.3 (#85449) --- .pre-commit-config.yaml | 2 +- .../components/device_automation/__init__.py | 12 ++++++------ requirements_test_pre_commit.txt | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d68fde0ec25..2b96684d55f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -36,7 +36,7 @@ repos: - pycodestyle==2.10.0 - pyflakes==3.0.1 - flake8-docstrings==1.6.0 - - pydocstyle==6.1.1 + - pydocstyle==6.2.3 - flake8-comprehensions==3.10.1 - flake8-noqa==1.3.0 - mccabe==0.7.0 diff --git a/homeassistant/components/device_automation/__init__.py b/homeassistant/components/device_automation/__init__.py index 3b75f4fff4c..65aad7def74 100644 --- a/homeassistant/components/device_automation/__init__.py +++ b/homeassistant/components/device_automation/__init__.py @@ -120,7 +120,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: @overload -async def async_get_device_automation_platform( # noqa: D103 +async def async_get_device_automation_platform( hass: HomeAssistant, domain: str, automation_type: Literal[DeviceAutomationType.TRIGGER], @@ -129,7 +129,7 @@ async def async_get_device_automation_platform( # noqa: D103 @overload -async def async_get_device_automation_platform( # noqa: D103 +async def async_get_device_automation_platform( hass: HomeAssistant, domain: str, automation_type: Literal[DeviceAutomationType.CONDITION], @@ -138,7 +138,7 @@ async def async_get_device_automation_platform( # noqa: D103 @overload -async def async_get_device_automation_platform( # noqa: D103 +async def async_get_device_automation_platform( hass: HomeAssistant, domain: str, automation_type: Literal[DeviceAutomationType.ACTION], @@ -147,15 +147,15 @@ async def async_get_device_automation_platform( # noqa: D103 @overload -async def async_get_device_automation_platform( # noqa: D103 +async def async_get_device_automation_platform( hass: HomeAssistant, domain: str, automation_type: DeviceAutomationType -) -> "DeviceAutomationPlatformType": +) -> DeviceAutomationPlatformType: ... async def async_get_device_automation_platform( hass: HomeAssistant, domain: str, automation_type: DeviceAutomationType -) -> "DeviceAutomationPlatformType": +) -> DeviceAutomationPlatformType: """Load device automation platform for integration. Throws InvalidDeviceAutomationConfig if the integration is not found or does not support device automation. diff --git a/requirements_test_pre_commit.txt b/requirements_test_pre_commit.txt index cb80f4544c2..8644ae23a16 100644 --- a/requirements_test_pre_commit.txt +++ b/requirements_test_pre_commit.txt @@ -11,7 +11,7 @@ flake8==6.0.0 isort==5.11.4 mccabe==0.7.0 pycodestyle==2.10.0 -pydocstyle==6.1.1 +pydocstyle==6.2.3 pyflakes==3.0.1 pyupgrade==3.3.1 yamllint==1.28.0 -- GitLab