mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
fix lint
This commit is contained in:
parent
a81b945129
commit
d3665ea0ea
|
@ -117,6 +117,7 @@ ignore = [
|
||||||
"E221", # Multiple spaces before operator
|
"E221", # Multiple spaces before operator
|
||||||
"E226", # Missing whitespace around arithmetic operator
|
"E226", # Missing whitespace around arithmetic operator
|
||||||
"E241", # Multiple spaces after ','
|
"E241", # Multiple spaces after ','
|
||||||
|
"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
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -4,21 +4,20 @@ from typing import Literal, TypedDict
|
||||||
|
|
||||||
littlecms_version: str
|
littlecms_version: str
|
||||||
|
|
||||||
_tuple_3f = tuple[float, float, float]
|
_Tuple3f = tuple[float, float, float]
|
||||||
_tuple_2x3f = tuple[_tuple_3f, _tuple_3f]
|
_Tuple2x3f = tuple[_Tuple3f, _Tuple3f]
|
||||||
_tuple_3x3f = tuple[_tuple_3f, _tuple_3f, _tuple_3f]
|
_Tuple3x3f = tuple[_Tuple3f, _Tuple3f, _Tuple3f]
|
||||||
_tuple_2x3x3f = tuple[_tuple_3x3f, _tuple_3x3f]
|
|
||||||
|
|
||||||
class _IccMeasurementCondition(TypedDict):
|
class _IccMeasurementCondition(TypedDict):
|
||||||
observer: int
|
observer: int
|
||||||
backing: _tuple_3f
|
backing: _Tuple3f
|
||||||
geo: str
|
geo: str
|
||||||
flare: float
|
flare: float
|
||||||
illuminant_type: str
|
illuminant_type: str
|
||||||
|
|
||||||
class _IccViewingCondition(TypedDict):
|
class _IccViewingCondition(TypedDict):
|
||||||
illuminant: _tuple_3f
|
illuminant: _Tuple3f
|
||||||
surround: _tuple_3f
|
surround: _Tuple3f
|
||||||
illuminant_type: str
|
illuminant_type: str
|
||||||
|
|
||||||
class CmsProfile:
|
class CmsProfile:
|
||||||
|
@ -71,29 +70,29 @@ class CmsProfile:
|
||||||
@property
|
@property
|
||||||
def saturation_rendering_intent_gamut(self) -> str | None: ...
|
def saturation_rendering_intent_gamut(self) -> str | None: ...
|
||||||
@property
|
@property
|
||||||
def red_colorant(self) -> _tuple_2x3f | None: ...
|
def red_colorant(self) -> _Tuple2x3f | None: ...
|
||||||
@property
|
@property
|
||||||
def green_colorant(self) -> _tuple_2x3f | None: ...
|
def green_colorant(self) -> _Tuple2x3f | None: ...
|
||||||
@property
|
@property
|
||||||
def blue_colorant(self) -> _tuple_2x3f | None: ...
|
def blue_colorant(self) -> _Tuple2x3f | None: ...
|
||||||
@property
|
@property
|
||||||
def red_primary(self) -> _tuple_2x3f | None: ...
|
def red_primary(self) -> _Tuple2x3f | None: ...
|
||||||
@property
|
@property
|
||||||
def green_primary(self) -> _tuple_2x3f | None: ...
|
def green_primary(self) -> _Tuple2x3f | None: ...
|
||||||
@property
|
@property
|
||||||
def blue_primary(self) -> _tuple_2x3f | None: ...
|
def blue_primary(self) -> _Tuple2x3f | None: ...
|
||||||
@property
|
@property
|
||||||
def media_white_point_temperature(self) -> float | None: ...
|
def media_white_point_temperature(self) -> float | None: ...
|
||||||
@property
|
@property
|
||||||
def media_white_point(self) -> _tuple_2x3f | None: ...
|
def media_white_point(self) -> _Tuple2x3f | None: ...
|
||||||
@property
|
@property
|
||||||
def media_black_point(self) -> _tuple_2x3f | None: ...
|
def media_black_point(self) -> _Tuple2x3f | None: ...
|
||||||
@property
|
@property
|
||||||
def luminance(self) -> _tuple_2x3f | None: ...
|
def luminance(self) -> _Tuple2x3f | None: ...
|
||||||
@property
|
@property
|
||||||
def chromatic_adaptation(self) -> _tuple_2x3x3f | None: ...
|
def chromatic_adaptation(self) -> tuple[_Tuple3x3f, _Tuple3x3f] | None: ...
|
||||||
@property
|
@property
|
||||||
def chromaticity(self) -> _tuple_3x3f | None: ...
|
def chromaticity(self) -> _Tuple3x3f | None: ...
|
||||||
@property
|
@property
|
||||||
def colorant_table(self) -> list[str] | None: ...
|
def colorant_table(self) -> list[str] | None: ...
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue
Block a user