Skip to content

Commit 1312bf7

Browse files
[SofaStubgen] Remove the generation of the parameter "hack" for first release. (#478)
* Remove the generation of the parameter "hack" for first release. * [SofaStubgen] Add the handling of the "long long" to python int.
1 parent cb4e6bf commit 1312bf7

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

scripts/sofaStubgen.py

+2-12
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ def sofa_to_python_typename(name, short=False):
3131
"f" : "float",
3232
"i" : "int",
3333
"I" : "int",
34+
"q" : "int",
35+
"Q" : "int",
3436
"L" : "int",
3537
"l" : "int",
3638
"b" : "int",
@@ -204,18 +206,6 @@ def __init__(self, {constructor_params_typehints}):
204206
205207
{class_typehints}
206208
207-
@dataclasses.dataclass
208-
class Parameters:
209-
\"\"\"Parameter for the construction of the {class_name} component\"\"\"
210-
211-
{params_typehints}
212-
213-
def to_dict(self):
214-
return dataclasses.asdict(self)
215-
216-
@staticmethod
217-
def new_parameters() -> Parameters:
218-
return {class_name}.Parameters()
219209
"""
220210

221211
def documentation_code(class_name):

0 commit comments

Comments
 (0)