From a7d452d5ec2451cf183b0c46e761a7d7a2bb0260 Mon Sep 17 00:00:00 2001 From: Huanyi Xie <74809554+xiehuanyi@users.noreply.github.com> Date: Sat, 10 Oct 2026 21:23:18 +0300 Subject: [PATCH] Keep lint checks compatible with supported Python 3.8 --- docs/conf.py | 3 +-- pyproject.toml | 1 + src/sortedcontainers/sorteddict.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 54598bf..f486b24 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -176,8 +176,7 @@ 'SortedContainers Documentation', author, 'SortedContainers', - 'Python sorted collections library:' - ' sorted list, sorted dict, and sorted set.', + 'Python sorted collections library: sorted list, sorted dict, and sorted set.', 'Miscellaneous', ), ] diff --git a/pyproject.toml b/pyproject.toml index e135023..5fbc6a4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,6 +35,7 @@ version = {attr = "sortedcontainers.__version__"} where = ["src"] [tool.ruff] +target-version = "py38" format.quote-style = "single" [tool.ruff.lint] diff --git a/src/sortedcontainers/sorteddict.py b/src/sortedcontainers/sorteddict.py index 273c9ce..0be576e 100644 --- a/src/sortedcontainers/sorteddict.py +++ b/src/sortedcontainers/sorteddict.py @@ -191,7 +191,7 @@ def iloc(self): return self._iloc except AttributeError: warnings.warn( - 'sorted_dict.iloc is deprecated.' ' Use SortedDict.keys() instead.', + 'sorted_dict.iloc is deprecated. Use SortedDict.keys() instead.', DeprecationWarning, stacklevel=2, )