File tree 4 files changed +2
-9
lines changed
4 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,4 @@ figure.facecolor: white
27
27
28
28
# path
29
29
path.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(
748
748
stack = ExitStack ()
749
749
stack .callback (dict .update , rcParams , rcParams .copy ()) # type: ignore
750
750
751
- from matplotlib import patheffects
752
751
rcParams .update ({** style .library ["xkcd" ],
753
752
'path.sketch' : (scale , length , randomness )})
754
753
return stack
Original file line number Diff line number Diff line change @@ -877,13 +877,10 @@ def _validate_dict(d):
877
877
d = ast .literal_eval (d )
878
878
except ValueError :
879
879
pass
880
-
881
880
if isinstance (d , dict ) or (allow_none and (d is None )):
882
881
return d
883
-
884
882
raise ValueError (f"Input { d !r} must be a dictionary {{'k': v}} "
885
883
f"{ 'or None' if allow_none else '' } " )
886
-
887
884
return _validate_dict
888
885
889
886
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class ValidateInStrings:
28
28
29
29
def validate_any (s : Any ) -> Any : ...
30
30
def 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 ]] ]: ...
32
32
def validate_bool (b : Any ) -> bool : ...
33
33
def validate_axisbelow (s : Any ) -> bool | Literal ["line" ]: ...
34
34
def validate_dpi (s : Any ) -> Literal ["figure" ] | float : ...
You can’t perform that action at this time.
0 commit comments