# Path: sigtools/_util.py
# def get_funcsigs():
#     def __repr__(self):
# def noop(func):
# def qualname(obj):
#     def __init__(self, *args, **kwargs):
#             def cg(func, **kwargs):
#     def __get__(self, instance, owner):
# def safe_get(obj, instance, owner):
# def iter_call(obj):
# def get_introspectable(obj, forged=True, af_hint=True, partial=True):
# def get_ast(func):
# class _Unset(object):
# class OverrideableDataDesc(object):
# UNSET = _Unset()
# 
# Path: sigtools/modifiers.py
# class _PokTranslator(_util.OverrideableDataDesc):
# class annotate(object):
#     def __new__(cls, func=None, posoargs=(), kwoargs=(), **kwargs):
#     def __init__(self, func, posoargs=(), kwoargs=(), **kwargs):
#     def _merge_other(self, other):
#     def _prepare(self):
#     def _sigtools__autoforwards_hint(self, func):
#     def __call__(self, *args, **kwargs):
#     def parameters(self):
#     def __repr__(self):
# def kwoargs(start=None, *kwoarg_names):
# def _kwoargs_start(start, _kwoargs, func, *args, **kwargs):
# def posoargs(end=None, *posoarg_names):
# def _posoargs_end(end, _posoargs, func, *args, **kwargs):
# def autokwoargs(func=None, exceptions=()):
# def _autokwoargs(exceptions, func):
#     def __init__(self, __return_annotation=_util.UNSET, **annotations):
#     def __call__(self, obj):
#     def __repr__(self):
# 
# Path: sigtools/signatures.py

# 
# Path: sigtools/_specifiers.py
# def forged_signature(obj, auto=True, args=(), kwargs={}):


from functools import partial, update_wrapper
from sigtools import _util, modifiers, signatures, _specifiers
            self._signature_forger)


def forger_function(func):
    """Creates a decorator factory which, when applied will set ``func`` as the
    forger function of the decorated object.

    :param callable func: Must return a fake signature for the object passed as
        the named argument ``obj``. Any arguments supplied during decoration
        are also passed.

    The decorator produced by this function also accepts an ``emulate``
    parameter. See `set_signature_forger` for information on it.

    This function can be used as a decorator::

        >>> from sigtools import specifiers, modifiers, support
        >>> @specifiers.forger_function
        ... @modifiers.kwoargs('obj')
        ... def static_signature(obj, sig):
        ...     return sig
        ...
        >>> @static_signature(support.s('a, b, /'))
        ... def my_func(d, e):
        ...     pass
        ...
        >>> print(specifiers.signature(my_func))
        (a, b, /)

    """

# Path: sigtools/_util.py
# def get_funcsigs():
#     def __repr__(self):
# def noop(func):
# def qualname(obj):
#     def __init__(self, *args, **kwargs):
#             def cg(func, **kwargs):
#     def __get__(self, instance, owner):
# def safe_get(obj, instance, owner):
# def iter_call(obj):
# def get_introspectable(obj, forged=True, af_hint=True, partial=True):
# def get_ast(func):
# class _Unset(object):
# class OverrideableDataDesc(object):
# UNSET = _Unset()
# 
# Path: sigtools/modifiers.py
# class _PokTranslator(_util.OverrideableDataDesc):
# class annotate(object):
#     def __new__(cls, func=None, posoargs=(), kwoargs=(), **kwargs):
#     def __init__(self, func, posoargs=(), kwoargs=(), **kwargs):
#     def _merge_other(self, other):
#     def _prepare(self):
#     def _sigtools__autoforwards_hint(self, func):
#     def __call__(self, *args, **kwargs):
#     def parameters(self):
#     def __repr__(self):
# def kwoargs(start=None, *kwoarg_names):
# def _kwoargs_start(start, _kwoargs, func, *args, **kwargs):
# def posoargs(end=None, *posoarg_names):
# def _posoargs_end(end, _posoargs, func, *args, **kwargs):
# def autokwoargs(func=None, exceptions=()):
# def _autokwoargs(exceptions, func):
#     def __init__(self, __return_annotation=_util.UNSET, **annotations):
#     def __call__(self, obj):
#     def __repr__(self):
# 
# Path: sigtools/signatures.py

# 
# Path: sigtools/_specifiers.py
# def forged_signature(obj, auto=True, args=(), kwargs={}):


# Path: sigtools/specifiers.py
from functools import partial, update_wrapper
from sigtools import _util, modifiers, signatures, _specifiers

            self._signature_forger)


def forger_function(func):
    """Creates a decorator factory which, when applied will set ``func`` as the
    forger function of the decorated object.

    :param callable func: Must return a fake signature for the object passed as
        the named argument ``obj``. Any arguments supplied during decoration
        are also passed.

    The decorator produced by this function also accepts an ``emulate``
    parameter. See `set_signature_forger` for information on it.

    This function can be used as a decorator::

        >>> from sigtools import specifiers, modifiers, support
        >>> @specifiers.forger_function
        ... @modifiers.kwoargs('obj')
        ... def static_signature(obj, sig):
        ...     return sig
        ...
        >>> @static_signature(support.s('a, b, /'))
        ... def my_func(d, e):
        ...     pass
        ...
        >>> print(specifiers.signature(my_func))
        (a, b, /)

    """

    @modifiers.kwoargs('emulate')