Skip to content

Commit d1e14c5

Browse files
committed
UPD: Fix mypy issues
1 parent 755b083 commit d1e14c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tiatoolbox/utils/postproc_defs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ def __init__(
2222
provided, a set of distinct colors will be auto-generated.
2323
2424
"""
25-
self.colors = None
25+
self.colors: np.ndarray | None = None
2626
self.color_dict = color_dict
27-
self.is_validated = False
28-
self.channels = None
29-
self.enhance = 1.0
27+
self.is_validated: bool = False
28+
self.channels: list[int] | None = None
29+
self.enhance: float = 1.0
3030

3131
def validate(self: MultichannelToRGB, n: int) -> None:
3232
"""Validate the input color_dict on first read from image.

0 commit comments

Comments
 (0)