Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6d78ec0

Browse filesBrowse files
committed
trying to fix mypy
1 parent d77f5c1 commit 6d78ec0
Copy full SHA for 6d78ec0

File tree

2 files changed

+2
-2
lines changed
Filter options

2 files changed

+2
-2
lines changed

‎lib/matplotlib/rcsetup.py

Copy file name to clipboardExpand all lines: lib/matplotlib/rcsetup.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/rcsetup.pyi
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.