From 096eb6ccfe91efc8423bc4c502be547b7b6a2f86 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel <guilhem.saurel@laas.fr> Date: Mon, 28 Mar 2022 15:36:26 +0200 Subject: [PATCH] format: update yapf --- src/dynamic_graph/attrpath.py | 2 ++ src/dynamic_graph/script_shortcuts.py | 2 ++ tests/test_bindings.py | 1 + 3 files changed, 5 insertions(+) diff --git a/src/dynamic_graph/attrpath.py b/src/dynamic_graph/attrpath.py index 1e5cdfa..98d059e 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 afca81f..04a1bb7 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 92ea4a5..d4d8a36 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 -- GitLab