Skip to content

Commit

Permalink
Removed forwards_sources remnant
Browse files Browse the repository at this point in the history
  • Loading branch information
epsy committed Feb 4, 2016
1 parent 65cad08 commit 0a3211d
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions sigtools/signatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,33 +48,4 @@
merge = modifiers.autokwoargs(merge)
embed = modifiers.autokwoargs(embed)
mask = modifiers.autokwoargs(exceptions=('num_args',))(mask)
forwards_sources = modifiers.autokwoargs(exceptions=('num_args',))(forwards)

def forwards(*args, **kwargs):
"""Calls `mask` on ``inner``, then returns the result of calling
`embed` with ``outer`` and the result of `mask`.
:param inspect.Signature outer: The outermost signature.
:param inspect.Signature inner: The inner signature.
``use_varargs`` and ``use_varkwargs`` are the same parameters as in
`.embed`, and ``num_args``, ``named_args``, ``hide_args`` and
``hide_kwargs`` are parameters of `.mask`.
:return: the resulting `inspect.Signature` object
:raises: `IncompatibleSignatures`
::
>>> from sigtools import support, signatures
>>> print(signatures.forwards(
... support.s('a, *args, x, **kwargs'),
... support.s('b, c, *, y, z'),
... 1, 'y'))
(a, c, *, x, z)
.. seealso::
:ref:`forwards-pick`
"""
return forwards_sources(*args, **kwargs)
forwards = modifiers.autokwoargs(exceptions=('num_args',))(forwards)

0 comments on commit 0a3211d

Please sign in to comment.