Skip to content

Commit 96f3548

Browse files
committed
Remove extra whitespace between simple signatures
1 parent 8dfa09c commit 96f3548

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dotnet_stub_builder/makers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,10 @@ def walk_attrs(module: ModuleType, attr_name, converter=Converter()) -> str:
217217
"instance property must be accessed through a class instance",
218218
"property cannot be read",
219219
}:
220-
buf.append(tab_in(f"@property\ndef {child_attr_name}(self): ...\n"))
220+
buf.append(tab_in(f"\n@property\ndef {child_attr_name}(self): ..."))
221221
buf.append(
222222
tab_in(
223-
f"@{child_attr_name}.setter\ndef {child_attr_name}(self, value): ...\n"
223+
f"\n@{child_attr_name}.setter\ndef {child_attr_name}(self, value): ..."
224224
)
225225
)
226226
continue
@@ -259,11 +259,11 @@ def walk_attrs(module: ModuleType, attr_name, converter=Converter()) -> str:
259259
buf.append(line)
260260

261261
elif arguments is None:
262-
buf.append(tab_in(f"def {child_attr_name}(self, *args, **kwargs) -> {return_type}: ...\n"))
262+
buf.append(tab_in(f"def {child_attr_name}(self, *args, **kwargs) -> {return_type}: ..."))
263263

264264
elif not arguments:
265265
# i.e. takes no arguments
266-
buf.append(tab_in(f"def {child_attr_name}(self) -> {return_type}: ...\n"))
266+
buf.append(tab_in(f"def {child_attr_name}(self) -> {return_type}: ..."))
267267

268268
buf.append("")
269269

0 commit comments

Comments
 (0)