chore: remove a couple of things pylint is unhappy about (#2027)
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
@@ -271,7 +271,6 @@ class PlatformModule(Protocol):
|
|||||||
def build(self, options: Options, tmp_path: Path) -> None: ...
|
def build(self, options: Options, tmp_path: Path) -> None: ...
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable-next=inconsistent-return-statements
|
|
||||||
def get_platform_module(platform: PlatformName) -> PlatformModule:
|
def get_platform_module(platform: PlatformName) -> PlatformModule:
|
||||||
if platform == "linux":
|
if platform == "linux":
|
||||||
return cibuildwheel.linux
|
return cibuildwheel.linux
|
||||||
|
|||||||
@@ -307,7 +307,6 @@ def _resolve_cascade(
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable-next=inconsistent-return-statements
|
|
||||||
def _apply_inherit_rule(
|
def _apply_inherit_rule(
|
||||||
before: str | None, after: str, rule: InheritRule, option_format: OptionFormat | None
|
before: str | None, after: str, rule: InheritRule, option_format: OptionFormat | None
|
||||||
) -> str:
|
) -> str:
|
||||||
@@ -329,10 +328,10 @@ def _apply_inherit_rule(
|
|||||||
|
|
||||||
if rule == InheritRule.APPEND:
|
if rule == InheritRule.APPEND:
|
||||||
return option_format.merge_values(before, after)
|
return option_format.merge_values(before, after)
|
||||||
elif rule == InheritRule.PREPEND:
|
if rule == InheritRule.PREPEND:
|
||||||
return option_format.merge_values(after, before)
|
return option_format.merge_values(after, before)
|
||||||
else:
|
|
||||||
assert_never(rule)
|
assert_never(rule)
|
||||||
|
|
||||||
|
|
||||||
def _stringify_setting(
|
def _stringify_setting(
|
||||||
|
|||||||
Reference in New Issue
Block a user