Skip to content

Commit

Permalink
Update pydocstyle to 6.2.3 (home-assistant#85449)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored Jan 8, 2023
1 parent b0270f1 commit 8f7aca7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions homeassistant/components/device_automation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand All @@ -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],
Expand All @@ -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],
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_pre_commit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8f7aca7

Please sign in to comment.