Import names from typing instead of typing_extensions [3.11] (#97065)
This commit is contained in:
@@ -5,9 +5,8 @@ from collections import OrderedDict
|
||||
import logging
|
||||
import os
|
||||
from pathlib import Path
|
||||
from typing import NamedTuple
|
||||
from typing import NamedTuple, Self
|
||||
|
||||
from typing_extensions import Self
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant import loader
|
||||
|
||||
@@ -3,10 +3,9 @@ from __future__ import annotations
|
||||
|
||||
from collections.abc import Callable
|
||||
import sys
|
||||
from typing import Any
|
||||
from typing import Any, Self
|
||||
|
||||
import httpx
|
||||
from typing_extensions import Self
|
||||
|
||||
from homeassistant.const import APPLICATION_NAME, EVENT_HOMEASSISTANT_CLOSE, __version__
|
||||
from homeassistant.core import Event, HomeAssistant, callback
|
||||
|
||||
@@ -4,9 +4,7 @@ from __future__ import annotations
|
||||
from abc import ABC, abstractmethod
|
||||
from datetime import datetime, timedelta
|
||||
import logging
|
||||
from typing import Any, cast
|
||||
|
||||
from typing_extensions import Self
|
||||
from typing import Any, Self, cast
|
||||
|
||||
from homeassistant.const import ATTR_RESTORED, EVENT_HOMEASSISTANT_STOP
|
||||
from homeassistant.core import HomeAssistant, State, callback, valid_entity_id
|
||||
|
||||
@@ -4,10 +4,9 @@ from __future__ import annotations
|
||||
from collections.abc import Callable, Mapping, Sequence
|
||||
from enum import IntFlag
|
||||
from functools import cache
|
||||
from typing import Any, Generic, Literal, TypedDict, TypeVar, cast
|
||||
from typing import Any, Generic, Literal, Required, TypedDict, TypeVar, cast
|
||||
from uuid import UUID
|
||||
|
||||
from typing_extensions import Required
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.backports.enum import StrEnum
|
||||
|
||||
Reference in New Issue
Block a user