Did I find the right examples for you? yes no

All Samples(45)  |  Call(19)  |  Derive(0)  |  Import(26)

src/a/u/AutobahnPython-HEAD/examples/twisted/wamp/work/test2.py   AutobahnPython(Download)
   return None
 
print(inspect.signature(add2))
print(inspect.getargspec(add2))
print(get_class_default_arg(add2, Foo))

src/c/l/clize-HEAD/examples/clscommand.py   clize(Download)
 
try:
    from inspect import signature
except ImportError:
    from funcsigs import signature

src/n/e/newrelic-2.18.1.15/newrelic/packages/wrapt/decorators.py   newrelic(Download)
 
if not six.PY2:
    from inspect import signature
 
from .wrappers import (FunctionWrapper, BoundFunctionWrapper, ObjectProxy,
            # from. Thus generate the signature ourselves.
 
            return signature(self._self_adapter)
 
    if six.PY2:

src/w/r/wrapt-HEAD/src/decorators.py   wrapt(Download)
 
if not six.PY2:
    from inspect import signature
 
from .wrappers import (FunctionWrapper, BoundFunctionWrapper, ObjectProxy,
            # from. Thus generate the signature ourselves.
 
            return signature(self._self_adapter)
 
    if six.PY2:

src/w/r/wrapt-1.7.0/src/decorators.py   wrapt(Download)
 
if not six.PY2:
    from inspect import signature
 
from .wrappers import (FunctionWrapper, BoundFunctionWrapper, ObjectProxy,
            # from. Thus generate the signature ourselves.
 
            return signature(self._self_adapter)
 
    if six.PY2:

src/s/p/sphinx-autodoc-annotation-1.0/sphinx_autodoc_annotation.py   sphinx-autodoc-annotation(Download)
def add_annotation_content(obj, result):
    try:
        sig = inspect.signature(obj)
    except ValueError:
        # Can't extract signature, do nothing

src/c/o/Contexts-0.9.2/src/contexts/core.py   Contexts(Download)
def run_with_test_data(func, test_data):
    sig = inspect.signature(func)
    if test_data is not NO_EXAMPLE and sig.parameters:
        if isinstance(test_data, tuple) and len(sig.parameters) == len(test_data):
            func(*test_data)

src/c/o/Contexts-HEAD/src/contexts/core.py   Contexts(Download)
def run_with_test_data(func, test_data):
    sig = inspect.signature(func)
    if test_data is not NO_EXAMPLE and sig.parameters:
        if isinstance(test_data, tuple) and len(sig.parameters) == len(test_data):
            func(*test_data)

src/p/y/python-di-0.1.1/di/injectors.py   python-di(Download)
# -*- coding: utf-8 -*-
from inspect import signature, Parameter
import threading
 
from .annotators import Annotator, from_key, get_key
        # Determine whether to inspect the item itself or its constructor if present
        item_to_reflect = item.__init__ if isinstance(item, type) else item
        sig = signature(item_to_reflect)
 
        positionals = []

src/d/i/Dispatching-1.4.0/dispatching.py   Dispatching(Download)
'''
 
from inspect import signature, Parameter
from functools import wraps, partial
from collections import deque
        TypeError
        '''
        sig = signature(func)
        matchers = tuple(cls._make_all_matchers(sig.parameters.items()))
        return (partial(cls._bind_args, sig, matchers), func)

  1 | 2 | 3 | 4  Next