Skip to content

Commit a64dc22

Browse files
committed
rerun ruff
1 parent 8586262 commit a64dc22

5 files changed

Lines changed: 6 additions & 11 deletions

File tree

Pythonwin/Scintilla/win32/DepGen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def Generate():
1919

2020
# Create the dependencies file for g++
2121
deps = Dependencies.FindDependencies(
22-
["../win32/*.cxx"] + sources, ["../win32"] + includes, ".o", "../win32/"
22+
["../win32/*.cxx", *sources], ["../win32", *includes], ".o", "../win32/"
2323
)
2424

2525
# Add ScintillaBaseL as the same as ScintillaBase

Pythonwin/pywin/framework/interact.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ def ExtractCommand(self, lines):
486486
while end >= start:
487487
thisLine = self.DoGetLine(end)
488488
promptLen = len(GetPromptPrefix(thisLine))
489-
retList = [thisLine[promptLen:]] + retList
489+
retList = [thisLine[promptLen:], *retList]
490490
end -= 1
491491
return retList
492492

com/win32com/client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ def __setattr__(self, attr, value):
567567
args, defArgs = self._prop_map_put_[attr]
568568
except KeyError:
569569
raise AttributeError(f"'{self!r}' object has no attribute '{attr}'")
570-
self._oleobj_.Invoke(*(args + (value,) + defArgs))
570+
self._oleobj_.Invoke(*((*args, value, *defArgs)))
571571

572572
def _get_good_single_object_(self, obj, obUserName=None, resultCLSID=None):
573573
return _get_good_single_object_(obj, obUserName, resultCLSID)

win32/Lib/win32timezone.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ class TIME_ZONE_INFORMATION(_SimpleStruct):
323323

324324

325325
class DYNAMIC_TIME_ZONE_INFORMATION(TIME_ZONE_INFORMATION):
326-
_fields_ = TIME_ZONE_INFORMATION._fields_ + [
326+
_fields_ = [
327+
*TIME_ZONE_INFORMATION._fields_,
327328
("key_name", str),
328329
("dynamic_daylight_time_disabled", bool),
329330
]

win32/scripts/ControlService.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -307,13 +307,7 @@ def ReloadData(self):
307307
# svc[2][2] control buttons
308308
pos = self.listCtrl.AddString(str(svc[1]) + "\t" + status + "\t" + startup)
309309
self.listCtrl.SetItemData(pos, i)
310-
self.data.append(
311-
tuple(svc[2])
312-
+ (
313-
svc[1],
314-
svc[0],
315-
)
316-
)
310+
self.data.append((*tuple(svc[2]), svc[1], svc[0]))
317311
i += 1
318312

319313
if service and service[1] == svc[0]:

0 commit comments

Comments
 (0)