Lines Matching refs:inspect
11 import funcsigs as inspect namespace
17 sig = inspect.signature(func)
71 sig = inspect.signature(test)
127 inspect.signature(type)
130 inspect.signature(type.__call__)
135 inspect.signature(min.__call__)
141 inspect.signature(min)
145 inspect.signature(42)
148 inspect.Signature.from_function(42)
515 inspect.signature(Spam())
527 inspect.signature(ToFail())
593 sig = inspect.signature(foo)
665 P = inspect.Parameter
673 p = inspect.Parameter('foo', default=10,
674 kind=inspect.Parameter.POSITIONAL_ONLY)
678 self.assertEqual(p.kind, inspect.Parameter.POSITIONAL_ONLY)
681 inspect.Parameter('foo', default=10, kind='123')
684 inspect.Parameter('1', kind=inspect.Parameter.VAR_KEYWORD)
688 inspect.Parameter(None, kind=inspect.Parameter.VAR_KEYWORD)
691 inspect.Parameter('a', default=42,
692 kind=inspect.Parameter.VAR_KEYWORD)
695 inspect.Parameter('a', default=42,
696 kind=inspect.Parameter.VAR_POSITIONAL)
698 p = inspect.Parameter('a', default=42,
699 kind=inspect.Parameter.POSITIONAL_OR_KEYWORD)
701 p.replace(kind=inspect.Parameter.VAR_POSITIONAL)
706 P = inspect.Parameter
707 p = P('foo', default=42, kind=inspect.Parameter.KEYWORD_ONLY)
713 kind=inspect.Parameter.KEYWORD_ONLY))
716 p = inspect.Parameter('foo', default=42,
717 kind=inspect.Parameter.KEYWORD_ONLY)
723 p = inspect.Parameter('foo', default=42,
724 kind=inspect.Parameter.KEYWORD_ONLY)
760 p = inspect.Parameter(None, kind=inspect.Parameter.POSITIONAL_ONLY)
767 p = inspect.Parameter(None, kind=inspect.Parameter.POSITIONAL_ONLY)
779 sig = inspect.signature(func)
995 ba = inspect.signature(foo).bind(1)
1002 ba = inspect.signature(foo).bind(1)
1005 ba2 = inspect.signature(foo).bind(1)
1008 ba3 = inspect.signature(foo).bind(2)
1014 ba4 = inspect.signature(bar).bind(1)