Skip to content

Commit 6d78ec0

Browse files
committed
trying to fix mypy
1 parent d77f5c1 commit 6d78ec0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/rcsetup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ def validate_sketch(s):
592592
try:
593593
return tuple(_listify_validator(validate_float, n=3)(s))
594594
except ValueError:
595-
raise ValueError("Expected a 'scale, length, randomness' triplet")
595+
raise ValueError("Expected a (scale, length, randomness) triplet")
596596

597597

598598
def validate_path_effects(s):

lib/matplotlib/rcsetup.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ValidateInStrings:
2929

3030
def validate_any(s: Any) -> Any: ...
3131
def validate_anylist(s: Any) -> list[Any]: ...
32-
def validate_anydict(allow_none: bool = True, required_keys: set = None
32+
def validate_anydict(allow_none: bool = True, required_keys: set[str]|None = None
3333
) -> Callable[[dict[str, Any]|None], dict[str, Any]]: ...
3434
def validate_bool(b: Any) -> bool: ...
3535
def validate_axisbelow(s: Any) -> bool | Literal["line"]: ...

0 commit comments

Comments
 (0)