1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Move overlapping pylint rules to ruff, disable mypy overlap (#94359)

This commit is contained in:
Franck Nijhof
2023-06-27 17:42:46 +02:00
committed by GitHub
parent 7c676c0a7d
commit 3e85a29b86
88 changed files with 537 additions and 357 deletions

View File

@@ -16,7 +16,6 @@ async def test_hit(hass: HomeAssistant) -> None:
def _refresh():
nonlocal refresh_called
refresh_called = True
return
rate_limiter = ratelimit.KeyedRateLimit(hass)
rate_limiter.async_triggered("key1", dt_util.utcnow())
@@ -53,7 +52,6 @@ async def test_miss(hass: HomeAssistant) -> None:
def _refresh():
nonlocal refresh_called
refresh_called = True
return
rate_limiter = ratelimit.KeyedRateLimit(hass)
assert (
@@ -85,7 +83,6 @@ async def test_no_limit(hass: HomeAssistant) -> None:
def _refresh():
nonlocal refresh_called
refresh_called = True
return
rate_limiter = ratelimit.KeyedRateLimit(hass)
rate_limiter.async_triggered("key1", dt_util.utcnow())