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