From d72b75505c194280ac61c90c6b4ca3e5a741dfda Mon Sep 17 00:00:00 2001 From: Sylvain MARIE Date: Wed, 27 Feb 2019 18:09:37 +0100 Subject: [PATCH] Reverted old commits about exporting signature symbol. --- docs/index.md | 3 +-- makefun/tests/test_doc.py | 6 ------ 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/docs/index.md b/docs/index.md index cc2df91..212286b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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 diff --git a/makefun/tests/test_doc.py b/makefun/tests/test_doc.py index b8c6939..16c5c41 100644 --- a/makefun/tests/test_doc.py +++ b/makefun/tests/test_doc.py @@ -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