Skip to content

Commit

Permalink
Reverted old commits about exporting signature symbol.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain MARIE committed Feb 27, 2019
1 parent c321c72 commit d72b755
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,8 @@ Finally note that you can pass a function instead of a `Signature` object. The s

#### Signature mod helpers

Three helper functions are provided in this toolbox to make it a bit easier for you to edit `Signature` objects:
Two helper functions are provided in this toolbox to make it a bit easier for you to edit `Signature` objects:

- `signature` is an alias for whatever `signature` is available (the one from `inspect` in python 3.3+ or the one from `funcsigs` otherwise). It makes it easier for your code to be python 2/3 compliant.
- `remove_signature_parameters` creates a new signature from an existing one by removing all parameters corresponding to the names provided
- `add_signature_parameters` prepends the `Parameter`s provided in its `first=` argument, and appends the ones provided in its `last` argument

Expand Down
6 changes: 0 additions & 6 deletions makefun/tests/test_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,3 @@ def f_wrapper(*args, **kwargs):
print(captured.out)

assert captured.out == "hello\n"


def test_signature_alias():
""" Tests that the signature alias works as expected """
from makefun import signature as s
assert s == signature

0 comments on commit d72b755

Please sign in to comment.