Skip to content

Commit 7ba921d

Browse files
[autofix.ci] apply automated fixes
1 parent 186251d commit 7ba921d

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

pdoc/doc_ast.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
from collections.abc import Iterable
1111
from collections.abc import Iterator
1212
from dataclasses import dataclass
13-
import inspect
1413
from functools import cache
14+
import inspect
1515
from itertools import tee
1616
from itertools import zip_longest
1717
import types

pdoc/doc_pyi.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
from __future__ import annotations
88

9-
import importlib.util
109
from functools import cache
10+
import importlib.util
1111
from pathlib import Path
1212
import sys
1313
import traceback
@@ -18,7 +18,6 @@
1818

1919
from pdoc import doc
2020

21-
2221
overload_docstr = typing.overload(lambda: None).__doc__
2322

2423

pdoc/docstrings.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,17 @@
1414
from __future__ import annotations
1515

1616
import base64
17+
from functools import cache
1718
import inspect
1819
import mimetypes
1920
import os
20-
from functools import cache
2121
from pathlib import Path
2222
import re
2323
from textwrap import dedent
2424
from textwrap import indent
2525
import warnings
2626

2727

28-
2928
@cache
3029
def convert(docstring: str, docformat: str, source_file: Path | None) -> str:
3130
"""

pdoc/render_helpers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
from collections.abc import Iterable
55
from collections.abc import Mapping
66
from contextlib import contextmanager
7+
from functools import cache
78
import html
89
import inspect
910
import os
1011
import re
11-
from functools import cache
1212
from unittest.mock import patch
1313
import warnings
1414

0 commit comments

Comments
 (0)