Skip to content

Commit 3020b8d

Browse files
authored
STYLE: fix pylint use-maxsplit-arg warning (#49369)
1 parent cb42e05 commit 3020b8d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@
236236
if ".dev" in version:
237237
switcher_version = "dev"
238238
elif "rc" in version:
239-
switcher_version = version.split("rc")[0] + " (rc)"
239+
switcher_version = version.split("rc", maxsplit=1)[0] + " (rc)"
240240

241241
html_theme_options = {
242242
"external_links": [],

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ disable = [
9797
"unneeded-not",
9898
"use-implicit-booleaness-not-comparison",
9999
"use-implicit-booleaness-not-len",
100-
"use-maxsplit-arg",
101100
"use-sequence-for-iteration",
102101
"useless-import-alias",
103102
"wrong-import-order",

0 commit comments

Comments
 (0)