From 8a19e8da7b4e398cd5dfb03f8ff1e3a541fab1e3 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Sun, 5 Nov 2023 03:57:46 +0100 Subject: [PATCH] Adapt to mypy 1.6.1 (#267) * Adapt to mypy 1.6.1 * Bump mypy * Correct mypy error overrides --- hatasmota/config_validation.py | 2 +- hatasmota/discovery.py | 2 +- requirements-test.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hatasmota/config_validation.py b/hatasmota/config_validation.py index e6d33cf..fb1b8d1 100644 --- a/hatasmota/config_validation.py +++ b/hatasmota/config_validation.py @@ -3,7 +3,7 @@ from typing import Any, TypeVar -import voluptuous as vol # type:ignore[import] +import voluptuous as vol # type:ignore[import-untyped] # typing typevar T = TypeVar("T") # pylint: disable=invalid-name diff --git a/hatasmota/discovery.py b/hatasmota/discovery.py index 222bfb7..5176f93 100644 --- a/hatasmota/discovery.py +++ b/hatasmota/discovery.py @@ -5,7 +5,7 @@ import json import logging -import voluptuous as vol # type:ignore[import] +import voluptuous as vol # type:ignore[import-untyped] from . import config_validation as cv from .button import TasmotaButtonTrigger, TasmotaButtonTriggerConfig diff --git a/requirements-test.txt b/requirements-test.txt index ee4e18a..9bf614d 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -2,5 +2,5 @@ flake8==6.1.0 pylint==3.0.2 black==23.10.1 isort==5.12.0 -mypy==1.5.1 +mypy==1.6.1 pydantic==2.4.2