Skip to content

Commit 7bc42be

Browse files
committed
minor typing tweaks
1 parent 54a84f3 commit 7bc42be

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

documentation/reference/layeredimage/layergroup.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Group(LayerGroup):
3232
offsets: tuple[int, int] = (0, 0),
3333
opacity: float = 1.0,
3434
visible: bool = True,
35-
blendmode: BlendType | tuple[str, ...] = BlendType.NORMAL,
35+
blendmode: BlendType = BlendType.NORMAL,
3636
) -> None: ...
3737
```
3838

@@ -73,7 +73,7 @@ class Layer(LayerGroup):
7373
offsets: tuple[int, int] = (0, 0),
7474
opacity: float = 1.0,
7575
visible: bool = True,
76-
blendmode: BlendType | tuple[str, ...] = BlendType.NORMAL,
76+
blendmode: BlendType = BlendType.NORMAL,
7777
) -> None: ...
7878
```
7979

@@ -112,7 +112,7 @@ class LayerGroup:
112112
offsets: tuple[int, int] = (0, 0),
113113
opacity: float = 1.0,
114114
visible: bool = True,
115-
blendmode: BlendType | tuple[str, ...] = BlendType.NORMAL,
115+
blendmode: BlendType = BlendType.NORMAL,
116116
**kwargs: dict[str, Any]
117117
) -> None: ...
118118
```

layeredimage/layergroup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __init__(
1919
opacity: float = 1.0,
2020
*,
2121
visible: bool = True,
22-
blendmode: BlendType | tuple[str, ...] = BlendType.NORMAL,
22+
blendmode: BlendType = BlendType.NORMAL,
2323
**kwargs: dict[str, Any],
2424
) -> None:
2525
"""Represent an image layer or group.
@@ -80,7 +80,7 @@ def __init__(
8080
opacity: float = 1.0,
8181
*,
8282
visible: bool = True,
83-
blendmode: BlendType | tuple[str, ...] = BlendType.NORMAL,
83+
blendmode: BlendType = BlendType.NORMAL,
8484
) -> None:
8585
"""Representation of an image layer.
8686
@@ -133,7 +133,7 @@ def __init__(
133133
opacity: float = 1.0,
134134
*,
135135
visible: bool = True,
136-
blendmode: BlendType | tuple[str, ...] = BlendType.NORMAL,
136+
blendmode: BlendType = BlendType.NORMAL,
137137
) -> None:
138138
"""Representation of an image group.
139139

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ dev = [
4242
"pyright>=1.1.394",
4343
"pytest>=8.3.4",
4444
"ruff>=0.9.7",
45+
"safety>=3.3.0",
4546
]
4647

4748
[tool.ruff]

0 commit comments

Comments
 (0)