From 7ba921d620f2b3d6f9bde0501511607c019435d7 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Fri, 11 Oct 2024 14:03:30 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- pdoc/doc_ast.py | 2 +- pdoc/doc_pyi.py | 3 +-- pdoc/docstrings.py | 3 +-- pdoc/render_helpers.py | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) 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