Skip to content

Commit ee7fa96

Browse files
authored
chore: remove a couple of things pylint is unhappy about (#2027)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
1 parent d625d18 commit ee7fa96

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

cibuildwheel/__main__.py

-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ def get_python_configurations(
271271
def build(self, options: Options, tmp_path: Path) -> None: ...
272272

273273

274-
# pylint: disable-next=inconsistent-return-statements
275274
def get_platform_module(platform: PlatformName) -> PlatformModule:
276275
if platform == "linux":
277276
return cibuildwheel.linux

cibuildwheel/options.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,6 @@ def _resolve_cascade(
307307
return result
308308

309309

310-
# pylint: disable-next=inconsistent-return-statements
311310
def _apply_inherit_rule(
312311
before: str | None, after: str, rule: InheritRule, option_format: OptionFormat | None
313312
) -> str:
@@ -329,10 +328,10 @@ def _apply_inherit_rule(
329328

330329
if rule == InheritRule.APPEND:
331330
return option_format.merge_values(before, after)
332-
elif rule == InheritRule.PREPEND:
331+
if rule == InheritRule.PREPEND:
333332
return option_format.merge_values(after, before)
334-
else:
335-
assert_never(rule)
333+
334+
assert_never(rule)
336335

337336

338337
def _stringify_setting(

0 commit comments

Comments
 (0)