diff --git a/doc/source/conf.py b/doc/source/conf.py index 252670565ebff0..39acc28451f543 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -236,7 +236,7 @@ if ".dev" in version: switcher_version = "dev" elif "rc" in version: - switcher_version = version.split("rc")[0] + " (rc)" + switcher_version = version.split("rc", maxsplit=1)[0] + " (rc)" html_theme_options = { "external_links": [], diff --git a/pyproject.toml b/pyproject.toml index 63c2719b3b0fd5..d087253a462c75 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -97,7 +97,6 @@ disable = [ "unneeded-not", "use-implicit-booleaness-not-comparison", "use-implicit-booleaness-not-len", - "use-maxsplit-arg", "use-sequence-for-iteration", "useless-import-alias", "wrong-import-order",