From 4d9b73033d6ebb8594e94795f46cb6b8d908b91b Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Mon, 31 Jul 2023 17:59:40 +0200 Subject: [PATCH] Update python-typing-update to 0.6.0 (#97531) --- .pre-commit-config.yaml | 4 ++-- homeassistant/helpers/entity_registry.py | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b7b351b755f2f1..b4a6704717fa3a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,7 +43,7 @@ repos: hooks: - id: prettier - repo: https://github.com/cdce8p/python-typing-update - rev: v0.5.0 + rev: v0.6.0 hooks: # Run `python-typing-update` hook manually from time to time # to update python typing syntax. @@ -52,7 +52,7 @@ repos: - id: python-typing-update stages: [manual] args: - - --py310-plus + - --py311-plus - --force - --keep-updates files: ^(homeassistant|tests|script)/.+\.py$ diff --git a/homeassistant/helpers/entity_registry.py b/homeassistant/helpers/entity_registry.py index a46dd3c3a52477..ff2ca255279e84 100644 --- a/homeassistant/helpers/entity_registry.py +++ b/homeassistant/helpers/entity_registry.py @@ -15,10 +15,9 @@ from enum import StrEnum import logging import time -from typing import TYPE_CHECKING, Any, Literal, TypedDict, TypeVar, cast +from typing import TYPE_CHECKING, Any, Literal, NotRequired, TypedDict, TypeVar, cast import attr -from typing_extensions import NotRequired import voluptuous as vol from homeassistant.const import (