Skip to content

Commit 93347a5

Browse files
committed
Sync stubs for docstub
1 parent dc33fee commit 93347a5

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/docstub-stubs/_concurrency.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ class LoggingProcessExecutor:
2525

2626
max_workers: int | None = ...
2727
logging_handlers: tuple[logging.Handler, ...] = ...
28-
initializer: Callable | None = ...
28+
initializer: Callable[..., None] | None = ...
2929
initargs: tuple | None = ...
3030

3131
@staticmethod
3232
def _initialize_worker(
3333
queue: multiprocessing.Queue,
3434
worker_log_level: int,
35-
initializer: Callable,
35+
initializer: Callable[..., None],
3636
initargs: tuple[Any],
3737
) -> None: ...
3838
def __enter__(self) -> ProcessPoolExecutor | MockPoolExecutor: ...

src/docstub-stubs/_docstrings.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ class DoctypeTransformer(lark.visitors.Transformer):
7373
def rst_role(self, tree: lark.Tree) -> lark.Token: ...
7474
def union(self, tree: lark.Tree) -> str: ...
7575
def subscription(self, tree: lark.Tree) -> str: ...
76+
def param_spec(self, tree: lark.Tree) -> str: ...
77+
def callable(self, tree: lark.Tree) -> str: ...
7678
def natlang_literal(self, tree: lark.Tree) -> str: ...
7779
def natlang_container(self, tree: lark.Tree) -> str: ...
7880
def natlang_array(self, tree: lark.Tree) -> str: ...

src/docstub-stubs/_utils.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ from zlib import crc32
99

1010
def accumulate_qualname(qualname: str, *, start_right: bool = ...) -> None: ...
1111
def escape_qualname(name: str) -> str: ...
12-
def _resolve_path_before_caching(func: Callable) -> Callable: ...
12+
def _resolve_path_before_caching(
13+
func: Callable[[Path], str],
14+
) -> Callable[[Path], str]: ...
1315
def module_name_from_path(path: Path) -> str: ...
1416
def pyfile_checksum(path: Path) -> str: ...
1517
def update_with_add_values(

0 commit comments

Comments
 (0)