Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ dependencies = [
[dependency-groups]
dev = [
# DX
"nox>=2026.4.10",
"prek>=0.4.5",
"nox>=2026.10.20",
"prek>=0.5.11",
# Linters
"ruff>=0.15.20",
"mypy>=2.1.0",
"ty>=0.0.55",
"ruff>=0.17.6",
"mypy>=2.4.1",
"ty>=0.0.109",
]

[tool.uv]
Expand All @@ -35,6 +35,7 @@ select = [
]
ignore = [
"COM812", # conflicts with the formatter
"CPY001", # no copyright headers in this repo
"ISC001", # conflicts with the formatter
# No `from __future__ import annotations`, so annotation imports are evaluated at
# runtime and cannot move into a TYPE_CHECKING block.
Expand All @@ -48,6 +49,7 @@ ignore = [
"T201", # CLI tools: the printed report is the deliverable
"FBT", # internal recursion helpers; keyword-only bools add churn, not safety
"PLR0913", # record/report builders take one parameter per output column by design
"PLR0917", # same builders, positional by design
]
# stdlib_introspect runs across the whole introspect matrix (older interpreters
# included), so it keeps back-compatible idioms: TypeAlias over the newer `type`
Expand Down
4 changes: 2 additions & 2 deletions tools/stdlib_introspect.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import sys
import warnings
from collections import Counter
from collections.abc import Iterator
from collections.abc import Generator, Iterator
from pathlib import Path
from types import ModuleType
from typing import Any, TypeAlias
Expand Down Expand Up @@ -65,7 +65,7 @@ def is_private(name: str) -> bool:


@contextlib.contextmanager
def _silenced() -> Iterator[None]:
def _silenced() -> Generator[None]:
"""Swallow stdout/stderr/warnings during risky imports."""
sink = io.StringIO()
with warnings.catch_warnings():
Expand Down
Loading