Update python-typing-update to 0.6.0 (#97531)
This commit is contained in:
parent
dba6330fc8
commit
4d9b73033d
2 changed files with 3 additions and 4 deletions
|
@ -43,7 +43,7 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
- repo: https://github.com/cdce8p/python-typing-update
|
- repo: https://github.com/cdce8p/python-typing-update
|
||||||
rev: v0.5.0
|
rev: v0.6.0
|
||||||
hooks:
|
hooks:
|
||||||
# Run `python-typing-update` hook manually from time to time
|
# Run `python-typing-update` hook manually from time to time
|
||||||
# to update python typing syntax.
|
# to update python typing syntax.
|
||||||
|
@ -52,7 +52,7 @@ repos:
|
||||||
- id: python-typing-update
|
- id: python-typing-update
|
||||||
stages: [manual]
|
stages: [manual]
|
||||||
args:
|
args:
|
||||||
- --py310-plus
|
- --py311-plus
|
||||||
- --force
|
- --force
|
||||||
- --keep-updates
|
- --keep-updates
|
||||||
files: ^(homeassistant|tests|script)/.+\.py$
|
files: ^(homeassistant|tests|script)/.+\.py$
|
||||||
|
|
|
@ -15,10 +15,9 @@ from datetime import datetime, timedelta
|
||||||
from enum import StrEnum
|
from enum import StrEnum
|
||||||
import logging
|
import logging
|
||||||
import time
|
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
|
import attr
|
||||||
from typing_extensions import NotRequired
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
|
|
Loading…
Add table
Reference in a new issue