diff --git a/src/dynamic_graph/attrpath.py b/src/dynamic_graph/attrpath.py index 1e5cdfa82d0f3e1c113d8f38a25a381a952e6eb0..98d059ececbba8154dc116727ba6a8c510247ba6 100644 --- a/src/dynamic_graph/attrpath.py +++ b/src/dynamic_graph/attrpath.py @@ -30,7 +30,9 @@ class CommandPath(object): def createCommandModule(target, name): + def createGetter(name): + def __(self): obj = getattr(self, name) obj.mother = self diff --git a/src/dynamic_graph/script_shortcuts.py b/src/dynamic_graph/script_shortcuts.py index afca81fb06d1204c6e8dbece489bb97120e6090a..04a1bb71d77d14ab7d1acf5c7b63c4988852f3de 100644 --- a/src/dynamic_graph/script_shortcuts.py +++ b/src/dynamic_graph/script_shortcuts.py @@ -107,7 +107,9 @@ sys.ps1 = '% ' # Enable function that can be call without()def optionalparentheses(f): def optionalparentheses(f): + class decoclass: + def __init__(self, f): self.functor = f diff --git a/tests/test_bindings.py b/tests/test_bindings.py index 92ea4a5ad415ea8b3f05edcc2ea5f09ee5fa89bb..d4d8a3680c08d159557ee0bb06f56ce337256916 100644 --- a/tests/test_bindings.py +++ b/tests/test_bindings.py @@ -10,6 +10,7 @@ did not match C++ signature: class BindingsTests(unittest.TestCase): + def test_type_check(self): """ test the type checking in signal plugs