Skip to content

Commit 7223947

Browse files
committed
Sync stubs with source code changes
1 parent 6f84ab9 commit 7223947

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/docstub-stubs/_report.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ from typing import Any, ClassVar, Literal, Self, TextIO
99
import click
1010

1111
from ._cli_help import should_strip_ansi
12+
from ._utils import naive_natsort_key
1213

1314
logger: logging.Logger
1415

src/docstub-stubs/_utils.pyi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import re
55
from collections.abc import Callable, Hashable, Mapping, Sequence
66
from functools import lru_cache, wraps
77
from pathlib import Path
8+
from typing import Any
89
from zlib import crc32
910

1011
def accumulate_qualname(qualname: str, *, start_right: bool = ...) -> None: ...
@@ -18,3 +19,7 @@ def update_with_add_values(
1819

1920
class DocstubError(Exception):
2021
pass
22+
23+
_regex_digit: re.Pattern
24+
25+
def naive_natsort_key(item: Any) -> tuple[str | int]: ...

src/docstub/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class DocstubError(Exception):
200200
"""An error raised by docstub."""
201201

202202

203-
_regex_digit = re.compile(r"(\d+)")
203+
_regex_digit: re.Pattern = re.compile(r"(\d+)")
204204

205205

206206
def naive_natsort_key(item):

0 commit comments

Comments
 (0)