diff --git a/pdoc/doc_ast.py b/pdoc/doc_ast.py index 2a6ed237..880f4b00 100644 --- a/pdoc/doc_ast.py +++ b/pdoc/doc_ast.py @@ -10,8 +10,8 @@ from collections.abc import Iterable from collections.abc import Iterator from dataclasses import dataclass -import inspect from functools import cache +import inspect from itertools import tee from itertools import zip_longest import types diff --git a/pdoc/doc_pyi.py b/pdoc/doc_pyi.py index b2b1e90a..d4169262 100644 --- a/pdoc/doc_pyi.py +++ b/pdoc/doc_pyi.py @@ -6,8 +6,8 @@ from __future__ import annotations -import importlib.util from functools import cache +import importlib.util from pathlib import Path import sys import traceback @@ -18,7 +18,6 @@ from pdoc import doc - overload_docstr = typing.overload(lambda: None).__doc__ diff --git a/pdoc/docstrings.py b/pdoc/docstrings.py index 30a9be0e..b9588287 100644 --- a/pdoc/docstrings.py +++ b/pdoc/docstrings.py @@ -14,10 +14,10 @@ from __future__ import annotations import base64 +from functools import cache import inspect import mimetypes import os -from functools import cache from pathlib import Path import re from textwrap import dedent @@ -25,7 +25,6 @@ import warnings - @cache def convert(docstring: str, docformat: str, source_file: Path | None) -> str: """ diff --git a/pdoc/render_helpers.py b/pdoc/render_helpers.py index c2ea2647..8a8b0c70 100644 --- a/pdoc/render_helpers.py +++ b/pdoc/render_helpers.py @@ -4,11 +4,11 @@ from collections.abc import Iterable from collections.abc import Mapping from contextlib import contextmanager +from functools import cache import html import inspect import os import re -from functools import cache from unittest.mock import patch import warnings diff --git a/pdoc/web.py b/pdoc/web.py index a4f1329e..d19ff7ae 100644 --- a/pdoc/web.py +++ b/pdoc/web.py @@ -10,9 +10,9 @@ from collections.abc import Iterable from collections.abc import Iterator +from functools import cache import http.server import traceback -from functools import cache from typing import Mapping import warnings import webbrowser