Skip to content

Commit 4ea4069

Browse files
replace preconditions call to getargspec with getfullargspec
1 parent 2b2f601 commit 4ea4069

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

components/dash-table/tests/selenium/conftest.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from selenium.webdriver.support.wait import WebDriverWait
1212

1313

14-
1514
class PreconditionError(TypeError):
1615
pass
1716

@@ -31,7 +30,7 @@ def null_decorator(f):
3130

3231
precinfo = []
3332
for p in precs:
34-
spec = inspect.getargspec(p)
33+
spec = inspect.getfullargspec(p)
3534
if spec.varargs or spec.keywords:
3635
raise PreconditionError(
3736
(
@@ -47,7 +46,7 @@ def null_decorator(f):
4746
precinfo.append((appargs, closureargs, p))
4847

4948
def decorate(f):
50-
fspec = inspect.getargspec(f)
49+
fspec = inspect.getfullargspec(f)
5150

5251
for (appargs, closureargs, p) in precinfo:
5352
for apparg in appargs:

0 commit comments

Comments
 (0)