Skip to content

Commit d3665ea

Browse files
committed
fix lint
1 parent a81b945 commit d3665ea

2 files changed

Lines changed: 18 additions & 18 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ ignore = [
117117
"E221", # Multiple spaces before operator
118118
"E226", # Missing whitespace around arithmetic operator
119119
"E241", # Multiple spaces after ','
120+
"PYI026", # flake8-pyi: typing.TypeAlias added in Python 3.10
120121
"PYI034", # flake8-pyi: typing.Self added in Python 3.11
121122
]
122123

src/PIL/_imagingcms.pyi

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,20 @@ from typing import Literal, TypedDict
44

55
littlecms_version: str
66

7-
_tuple_3f = tuple[float, float, float]
8-
_tuple_2x3f = tuple[_tuple_3f, _tuple_3f]
9-
_tuple_3x3f = tuple[_tuple_3f, _tuple_3f, _tuple_3f]
10-
_tuple_2x3x3f = tuple[_tuple_3x3f, _tuple_3x3f]
7+
_Tuple3f = tuple[float, float, float]
8+
_Tuple2x3f = tuple[_Tuple3f, _Tuple3f]
9+
_Tuple3x3f = tuple[_Tuple3f, _Tuple3f, _Tuple3f]
1110

1211
class _IccMeasurementCondition(TypedDict):
1312
observer: int
14-
backing: _tuple_3f
13+
backing: _Tuple3f
1514
geo: str
1615
flare: float
1716
illuminant_type: str
1817

1918
class _IccViewingCondition(TypedDict):
20-
illuminant: _tuple_3f
21-
surround: _tuple_3f
19+
illuminant: _Tuple3f
20+
surround: _Tuple3f
2221
illuminant_type: str
2322

2423
class CmsProfile:
@@ -71,29 +70,29 @@ class CmsProfile:
7170
@property
7271
def saturation_rendering_intent_gamut(self) -> str | None: ...
7372
@property
74-
def red_colorant(self) -> _tuple_2x3f | None: ...
73+
def red_colorant(self) -> _Tuple2x3f | None: ...
7574
@property
76-
def green_colorant(self) -> _tuple_2x3f | None: ...
75+
def green_colorant(self) -> _Tuple2x3f | None: ...
7776
@property
78-
def blue_colorant(self) -> _tuple_2x3f | None: ...
77+
def blue_colorant(self) -> _Tuple2x3f | None: ...
7978
@property
80-
def red_primary(self) -> _tuple_2x3f | None: ...
79+
def red_primary(self) -> _Tuple2x3f | None: ...
8180
@property
82-
def green_primary(self) -> _tuple_2x3f | None: ...
81+
def green_primary(self) -> _Tuple2x3f | None: ...
8382
@property
84-
def blue_primary(self) -> _tuple_2x3f | None: ...
83+
def blue_primary(self) -> _Tuple2x3f | None: ...
8584
@property
8685
def media_white_point_temperature(self) -> float | None: ...
8786
@property
88-
def media_white_point(self) -> _tuple_2x3f | None: ...
87+
def media_white_point(self) -> _Tuple2x3f | None: ...
8988
@property
90-
def media_black_point(self) -> _tuple_2x3f | None: ...
89+
def media_black_point(self) -> _Tuple2x3f | None: ...
9190
@property
92-
def luminance(self) -> _tuple_2x3f | None: ...
91+
def luminance(self) -> _Tuple2x3f | None: ...
9392
@property
94-
def chromatic_adaptation(self) -> _tuple_2x3x3f | None: ...
93+
def chromatic_adaptation(self) -> tuple[_Tuple3x3f, _Tuple3x3f] | None: ...
9594
@property
96-
def chromaticity(self) -> _tuple_3x3f | None: ...
95+
def chromaticity(self) -> _Tuple3x3f | None: ...
9796
@property
9897
def colorant_table(self) -> list[str] | None: ...
9998
@property

0 commit comments

Comments
 (0)