Skip to content

Commit 7e22cf9

Browse files
committed
internal/shortcuts(refactor[typing]): Tighten kwargs key type
why: **kwargs keys are always strings for create_project. what: - Use dict[str, t.Any] for create_project overloads and impl
1 parent 48bd165 commit 7e22cf9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libvcs/_internal/shortcuts.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def create_project(
3838
path: StrPath,
3939
vcs: t.Literal["git"],
4040
progress_callback: ProgressCallbackProtocol | None = None,
41-
**kwargs: dict[t.Any, t.Any],
41+
**kwargs: dict[str, t.Any],
4242
) -> GitSync: ...
4343

4444

@@ -49,7 +49,7 @@ def create_project(
4949
path: StrPath,
5050
vcs: t.Literal["svn"],
5151
progress_callback: ProgressCallbackProtocol | None = None,
52-
**kwargs: dict[t.Any, t.Any],
52+
**kwargs: dict[str, t.Any],
5353
) -> SvnSync: ...
5454

5555

@@ -60,7 +60,7 @@ def create_project(
6060
path: StrPath,
6161
vcs: t.Literal["hg"],
6262
progress_callback: ProgressCallbackProtocol | None = ...,
63-
**kwargs: dict[t.Any, t.Any],
63+
**kwargs: dict[str, t.Any],
6464
) -> HgSync: ...
6565

6666

@@ -71,7 +71,7 @@ def create_project(
7171
path: StrPath,
7272
vcs: None = None,
7373
progress_callback: ProgressCallbackProtocol | None = None,
74-
**kwargs: dict[t.Any, t.Any],
74+
**kwargs: dict[str, t.Any],
7575
) -> GitSync | HgSync | SvnSync: ...
7676

7777

@@ -81,7 +81,7 @@ def create_project(
8181
path: StrPath,
8282
vcs: VCSLiteral | None = None,
8383
progress_callback: ProgressCallbackProtocol | None = None,
84-
**kwargs: dict[t.Any, t.Any],
84+
**kwargs: dict[str, t.Any],
8585
) -> GitSync | HgSync | SvnSync:
8686
r"""Return an object representation of a VCS repository.
8787

0 commit comments

Comments
 (0)