Skip to content

Commit fbf4117

Browse files
committed
Removed zip parameter added in Python 3.10 and disabled rule that auto-added it
1 parent cdc9c35 commit fbf4117

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cmd2/cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4020,7 +4020,7 @@ def select(self, opts: Union[str, list[str], list[tuple[Any, Optional[str]]]], p
40204020
"""
40214021
local_opts: Union[list[str], list[tuple[Any, Optional[str]]]]
40224022
if isinstance(opts, str):
4023-
local_opts = cast(list[tuple[Any, Optional[str]]], list(zip(opts.split(), opts.split(), strict=False)))
4023+
local_opts = cast(list[tuple[Any, Optional[str]]], list(zip(opts.split(), opts.split())))
40244024
else:
40254025
local_opts = opts
40264026
fulloptions: list[tuple[Any, Optional[str]]] = []

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ dev = [
4040
"black>=24",
4141
"codecov>=2",
4242
"invoke>=2",
43+
"ipython>=8",
4344
"mkdocs-git-revision-date-localized-plugin>=1.3",
4445
"mkdocs-include-markdown-plugin>=6",
4546
"mkdocs-macros-plugin>=1",
@@ -223,6 +224,7 @@ select = [
223224
ignore = [
224225
# `uv run ruff rule E501` for a description of that rule
225226
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed (would be good to enable this later)
227+
"B905", # zip() without an explicit strict= parameter (strict added in Python 3.10+)
226228
"COM812", # Conflicts with ruff format (see https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules)
227229
"COM819", # Conflicts with ruff format
228230
"D206", # Conflicts with ruff format

0 commit comments

Comments
 (0)