Skip to content

Commit 7275d14

Browse files
committed
chore: Lint
1 parent ff510f2 commit 7275d14

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎scripts/make.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from typing import TYPE_CHECKING, Any
3030

3131
if TYPE_CHECKING:
32-
from collections.abc import Iterator
32+
from collections.abc import Generator
3333

3434

3535
PYTHON_VERSIONS = os.getenv("PYTHON_VERSIONS", "3.10 3.11 3.12 3.13 3.14 3.15").split()
@@ -45,7 +45,7 @@ def shell(cmd: str, *, capture_output: bool = False, **kwargs: Any) -> str | Non
4545

4646

4747
@contextmanager
48-
def environ(**kwargs: str) -> Iterator[None]:
48+
def environ(**kwargs: str) -> Generator[None]:
4949
"""Temporarily set environment variables."""
5050
original = dict(os.environ)
5151
os.environ.update(kwargs)

‎src/mkdocstrings/_internal/handlers/base.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222

2323
from __future__ import annotations
2424

25-
import datetime
2625
import importlib
2726
import ssl
2827
from concurrent import futures
28+
from datetime import timedelta
2929
from importlib.metadata import entry_points
3030
from io import BytesIO
3131
from pathlib import Path
@@ -653,7 +653,7 @@ def _download_inventories(self) -> None:
653653
future = thread_pool.submit(
654654
download_and_cache_url,
655655
url,
656-
datetime.timedelta(days=1),
656+
timedelta(days=1),
657657
download=_download_url_with_gz,
658658
)
659659
self._inv_futures[future] = (handler, url, conf)

0 commit comments

Comments
 (0)