File tree Expand file tree Collapse file tree 4 files changed +2
-9
lines changed
Expand file tree Collapse file tree 4 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,4 @@ figure.facecolor: white
2727
2828# path
2929path.sketch : (1, 100, 2)
30- path.effects.withStroke : {"linewidth": 4, "foreground": 'w' }
31-
32- #'path.effects': [
33- # patheffects.withStroke(linewidth=4, foreground="w")]
30+ path.effects.withStroke : {"linewidth": 4, "foreground": 'w' }
Original file line number Diff line number Diff line change @@ -748,7 +748,6 @@ def xkcd(
748748 stack = ExitStack ()
749749 stack .callback (dict .update , rcParams , rcParams .copy ()) # type: ignore
750750
751- from matplotlib import patheffects
752751 rcParams .update ({** style .library ["xkcd" ],
753752 'path.sketch' : (scale , length , randomness )})
754753 return stack
Original file line number Diff line number Diff line change @@ -877,13 +877,10 @@ def _validate_dict(d):
877877 d = ast .literal_eval (d )
878878 except ValueError :
879879 pass
880-
881880 if isinstance (d , dict ) or (allow_none and (d is None )):
882881 return d
883-
884882 raise ValueError (f"Input { d !r} must be a dictionary {{'k': v}} "
885883 f"{ 'or None' if allow_none else '' } " )
886-
887884 return _validate_dict
888885
889886
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class ValidateInStrings:
2828
2929def validate_any (s : Any ) -> Any : ...
3030def validate_anylist (s : Any ) -> list [Any ]: ...
31- def validate_anydict (allow_none : bool ) -> Callable [dict [str ,Any ], None ]: ...
31+ def validate_anydict (allow_none : bool ) -> Callable [Optional [ dict [str , Any ]] ]: ...
3232def validate_bool (b : Any ) -> bool : ...
3333def validate_axisbelow (s : Any ) -> bool | Literal ["line" ]: ...
3434def validate_dpi (s : Any ) -> Literal ["figure" ] | float : ...
You can’t perform that action at this time.
0 commit comments