From ad020c08e8c55412e5ff477027b4cea761eb8c1e Mon Sep 17 00:00:00 2001
From: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Date: Tue, 28 Jan 2025 13:35:37 +0100
Subject: [PATCH] [isort] Permit to use isort 6 (#10204)

Closes #10203
---
 doc/whatsnew/fragments/10203.bugfix | 3 +++
 pyproject.toml                      | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
 create mode 100644 doc/whatsnew/fragments/10203.bugfix

diff --git a/doc/whatsnew/fragments/10203.bugfix b/doc/whatsnew/fragments/10203.bugfix
new file mode 100644
index 0000000000..ac2bdab5f3
--- /dev/null
+++ b/doc/whatsnew/fragments/10203.bugfix
@@ -0,0 +1,3 @@
+Relaxed the requirements for isort so pylint can benefit from isort 6.
+
+Closes #10203
diff --git a/pyproject.toml b/pyproject.toml
index 8d56ce3a7b..a97139dd43 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -42,7 +42,7 @@ dependencies    = [
     # Pinned to dev of second minor update to allow editable installs and fix primer issues,
     # see https://github.com/pylint-dev/astroid/issues/1341
     "astroid>=3.3.8,<=3.4.0-dev0",
-    "isort>=4.2.5,<6,!=5.13.0",
+    "isort>=4.2.5,<7,!=5.13.0",
     "mccabe>=0.6,<0.8",
     "tomli>=1.1.0;python_version<'3.11'",
     "tomlkit>=0.10.1",