mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-15 17:54:46 +03:00
Apply PYI026
This commit is contained in:
parent
a098a8791c
commit
b0542eae12
|
@ -185,7 +185,6 @@ lint.ignore = [
|
||||||
"PT011", # pytest-raises-too-broad
|
"PT011", # pytest-raises-too-broad
|
||||||
"PT012", # pytest-raises-with-multiple-statements
|
"PT012", # pytest-raises-with-multiple-statements
|
||||||
"PT017", # pytest-assert-in-except
|
"PT017", # pytest-assert-in-except
|
||||||
"PYI026", # flake8-pyi: typing.TypeAlias added in Python 3.10
|
|
||||||
"PYI034", # flake8-pyi: typing.Self added in Python 3.11
|
"PYI034", # flake8-pyi: typing.Self added in Python 3.11
|
||||||
"UP038", # pyupgrade: deprecated rule
|
"UP038", # pyupgrade: deprecated rule
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
import datetime
|
import datetime
|
||||||
import sys
|
import sys
|
||||||
from typing import Literal, SupportsFloat, TypedDict
|
from typing import Literal, SupportsFloat, TypeAlias, TypedDict
|
||||||
|
|
||||||
from ._typing import CapsuleType
|
from ._typing import CapsuleType
|
||||||
|
|
||||||
littlecms_version: str | None
|
littlecms_version: str | None
|
||||||
|
|
||||||
_Tuple3f = tuple[float, float, float]
|
_Tuple3f: TypeAlias = tuple[float, float, float]
|
||||||
_Tuple2x3f = tuple[_Tuple3f, _Tuple3f]
|
_Tuple2x3f: TypeAlias = tuple[_Tuple3f, _Tuple3f]
|
||||||
_Tuple3x3f = tuple[_Tuple3f, _Tuple3f, _Tuple3f]
|
_Tuple3x3f: TypeAlias = tuple[_Tuple3f, _Tuple3f, _Tuple3f]
|
||||||
|
|
||||||
class _IccMeasurementCondition(TypedDict):
|
class _IccMeasurementCondition(TypedDict):
|
||||||
observer: int
|
observer: int
|
||||||
|
|
Loading…
Reference in New Issue
Block a user