File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
components/dash-table/tests/selenium Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 11
11
from selenium .webdriver .support .wait import WebDriverWait
12
12
13
13
14
-
15
14
class PreconditionError (TypeError ):
16
15
pass
17
16
@@ -31,8 +30,8 @@ def null_decorator(f):
31
30
32
31
precinfo = []
33
32
for p in precs :
34
- spec = inspect .getargspec (p )
35
- if spec .varargs or spec .keywords :
33
+ spec = inspect .getfullargspec (p )
34
+ if spec .varargs or spec .varkw :
36
35
raise PreconditionError (
37
36
(
38
37
"Invalid precondition must not accept * nor ** args:\n " + " {!s}\n "
@@ -47,7 +46,7 @@ def null_decorator(f):
47
46
precinfo .append ((appargs , closureargs , p ))
48
47
49
48
def decorate (f ):
50
- fspec = inspect .getargspec (f )
49
+ fspec = inspect .getfullargspec (f )
51
50
52
51
for (appargs , closureargs , p ) in precinfo :
53
52
for apparg in appargs :
@@ -78,7 +77,7 @@ def g(*a, **kw):
78
77
"Precondition failed in call {!r}{}:\n {!s}\n " .format (
79
78
g ,
80
79
inspect .formatargvalues (
81
- fspec .args , fspec .varargs , fspec .keywords , args
80
+ fspec .args , fspec .varargs , fspec .varkw , args
82
81
),
83
82
stripped_source (p ),
84
83
)
You can’t perform that action at this time.
0 commit comments