@@ -53,6 +53,16 @@ class _ImageAction(_CxxWrapper):
5353 """
5454
5555 def __init__ (self : _Self , * args , point = None , element = None ) -> None :
56+ """
57+ Construct from sample element and sample point.
58+
59+ :Keyword Arguments:
60+ * **element** (*Element*) -- a sample element.
61+ * **point** (*Point*) -- a sample point.
62+
63+ :raises KeyError:
64+ if the action defined by the arguments is not defined.
65+ """
5666 super ().__init__ (
5767 * args ,
5868 required_kwargs = ("element" , "point" ),
@@ -62,9 +72,7 @@ def __init__(self: _Self, *args, point=None, element=None) -> None:
6272 if _to_cxx (self ) is not None :
6373 return
6474 if len (args ) != 0 :
65- raise ValueError (
66- f"expected 0 positional arguments, but found { len (args )} "
67- )
75+ raise ValueError (f"expected 0 positional arguments, but found { len (args )} " )
6876 self .py_template_params = (
6977 type (_to_cxx (element )),
7078 type (_to_cxx (point )),
@@ -80,7 +88,7 @@ def __call__(self: _Self, *args):
8088########################################################################
8189
8290
83- class ImageRightAction (_ImageAction ):
91+ class ImageRightAction (_ImageAction ): # pylint: disable=missing-class-docstring
8492 Element = _TypeVar ("Element" )
8593 Point = _TypeVar ("Point" )
8694
@@ -101,21 +109,6 @@ class ImageRightAction(_ImageAction):
101109
102110 _all_wrapped_cxx_types = {* _py_template_params_to_cxx_type .values ()}
103111
104- def __init__ (self : _Self , * args , point = None , element = None ):
105- """
106- :sig=(self: ImageRightAction, element=None, point=None):
107-
108- Construct from sample element and sample point.
109-
110- :Keyword Arguments:
111- * **element** (*Element*) -- a sample element.
112- * **point** (*Point*) -- a sample point.
113-
114- :raises KeyError:
115- if the action defined by the arguments is not defined.
116- """
117- super ().__init__ (* args , point = point , element = element )
118-
119112 @_copydoc (_ImageRightActionPPerm1PPerm1 .__call__ )
120113 def __call__ (self : _Self , pt : Point , x : Element ) -> Point :
121114 return _to_py (_to_cxx (self )(_to_cxx (pt ), _to_cxx (x )))
@@ -127,7 +120,7 @@ def __call__(self: _Self, pt: Point, x: Element) -> Point:
127120
128121_copy_cxx_mem_fns (_ImageRightActionPPerm1PPerm1 , ImageRightAction )
129122
130- for _type in ImageRightAction ._py_template_params_to_cxx_type .values ():
123+ for _type in ImageRightAction ._py_template_params_to_cxx_type .values (): # pylint:disable=protected-access
131124 _register_cxx_wrapped_type (_type , ImageRightAction )
132125
133126
@@ -136,7 +129,7 @@ def __call__(self: _Self, pt: Point, x: Element) -> Point:
136129########################################################################
137130
138131
139- class ImageLeftAction (_ImageAction ):
132+ class ImageLeftAction (_ImageAction ): # pylint: disable=missing-class-docstring
140133 Element = _TypeVar ("Element" )
141134 Point = _TypeVar ("Point" )
142135
@@ -156,21 +149,6 @@ class ImageLeftAction(_ImageAction):
156149
157150 _all_wrapped_cxx_types = {* _py_template_params_to_cxx_type .values ()}
158151
159- def __init__ (self : _Self , * args , point = None , element = None ):
160- """
161- :sig=(self: ImageLeftAction, element=None, point=None):
162-
163- Construct from sample element and sample point.
164-
165- :Keyword Arguments:
166- * **element** (*Element*) -- a sample element.
167- * **point** (*Point*) -- a sample point.
168-
169- :raises KeyError:
170- if the action defined by the arguments is not defined.
171- """
172- super ().__init__ (* args , point = point , element = element )
173-
174152 @_copydoc (_ImageLeftActionPPerm1PPerm1 .__call__ )
175153 def __call__ (self : _Self , pt : Point , x : Element ) -> Point :
176154 return _to_py (_to_cxx (self )(_to_cxx (pt ), _to_cxx (x )))
0 commit comments