Update typing 01 (#48013)

This commit is contained in:
Marc Mueller 2021-03-17 17:34:55 +01:00 committed by GitHub
parent 9011a54e7f
commit e55702d635
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 303 additions and 313 deletions

View file

@ -1,5 +1,7 @@
"""The exceptions used by Home Assistant."""
from typing import TYPE_CHECKING, Generator, Optional, Sequence
from __future__ import annotations
from typing import TYPE_CHECKING, Generator, Sequence
import attr
@ -113,12 +115,12 @@ class Unauthorized(HomeAssistantError):
def __init__(
self,
context: Optional["Context"] = None,
user_id: Optional[str] = None,
entity_id: Optional[str] = None,
config_entry_id: Optional[str] = None,
perm_category: Optional[str] = None,
permission: Optional[str] = None,
context: "Context" | None = None,
user_id: str | None = None,
entity_id: str | None = None,
config_entry_id: str | None = None,
perm_category: str | None = None,
permission: str | None = None,
) -> None:
"""Unauthorized error."""
super().__init__(self.__class__.__name__)