File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -380,13 +380,6 @@ def teed(*args, **kwargs):
380
380
saveit ()
381
381
382
382
383
- def validate_teewrap_kwargs (teeplot_kwargs : dict [str , object ]):
384
- if not all (k .startswith ("teeplot_" ) for k in teeplot_kwargs ):
385
- raise ValueError (
386
- "The `teewrap` decorator only accepts teeplot_* keyword arguments"
387
- )
388
-
389
-
390
383
def teewrap (
391
384
** teeplot_kwargs : object ,
392
385
):
@@ -398,7 +391,10 @@ def teewrap(
398
391
the same across function calls. For printing attributes on a per-call basis,
399
392
see `teeplot_outinclude` in `teeplot.tee`.
400
393
"""
401
- validate_teewrap_kwargs (teeplot_kwargs )
394
+ if not all (k .startswith ("teeplot_" ) for k in teeplot_kwargs ):
395
+ raise ValueError (
396
+ "The `teewrap` decorator only accepts teeplot_* keyword arguments"
397
+ )
402
398
403
399
def decorator (f : typing .Callable ):
404
400
@functools .wraps (f )
You can’t perform that action at this time.
0 commit comments