Skip to content

Commit fe75a5e

Browse files
import inspect.getfullargspec locally in typed()
1 parent 8af357a commit fe75a5e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

modeled/typed.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
__all__ = ['base']
2525

26-
from inspect import getfullargspec, isclass
26+
from inspect import isclass
2727

2828
from decorator import decorator
2929
from moretools import cached, qualname
@@ -85,6 +85,7 @@ def new(self, value, func):
8585

8686

8787
def typed(func):
88+
from inspect import getfullargspec
8889
spec = getfullargspec(func)
8990

9091
def typed(func, *args, **kwargs):

0 commit comments

Comments
 (0)