diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67faa1b..1572693 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -117,4 +117,4 @@ jobs: - name: Check tests/ with basedpyright run: | - basedpyright tests/ + basedpyright --level=warning --stats tests/ diff --git a/src/docstub-stubs/_cli_help.pyi b/src/docstub-stubs/_cli_help.pyi index 1d6cefb..dc7a968 100644 --- a/src/docstub-stubs/_cli_help.pyi +++ b/src/docstub-stubs/_cli_help.pyi @@ -3,7 +3,7 @@ import logging import os import re -from collections.abc import Sequence +from collections.abc import Iterable from typing import IO, Any, ClassVar import click @@ -32,7 +32,7 @@ class HelpFormatter(click.formatting.HelpFormatter): def __init__(self, *args: Any, **kwargs: Any) -> None: ... def write_dl( self, - rows: Sequence[tuple[str, str]], + rows: Iterable[tuple[str, str]], *args: Any, **kwargs: Any, ) -> None: ... diff --git a/src/docstub/_cli_help.py b/src/docstub/_cli_help.py index ddc64a2..8462692 100644 --- a/src/docstub/_cli_help.py +++ b/src/docstub/_cli_help.py @@ -95,7 +95,7 @@ def write_dl( Parameters ---------- - rows : Sequence[tuple[str, str]] + rows : Iterable[tuple[str, str]] *args, **kwargs : Any """ if not rows[0][0].strip().startswith("-"):