From faec290edce85f4b47bf420e7ccbe8732de5f846 Mon Sep 17 00:00:00 2001 From: Thierry Moisan Date: Fri, 28 Oct 2022 10:21:23 -0400 Subject: [PATCH] STYLE: fix pylint use-maxsplit-arg warning (#49369) --- doc/source/conf.py | 2 +- pyproject.toml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 252670565ebff..39acc28451f54 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 63c2719b3b0fd..d087253a462c7 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",