Skip to content

Commit 2a5d30f

Browse files
committed
!squash pyproject: Pack src/vcspull/py.typed
1 parent ca788cd commit 2a5d30f

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/vcspull/types.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
from __future__ import annotations
44

55
import typing as t
6-
from typing import TypedDict
76

87

9-
class ConfigDict(TypedDict, total=False):
8+
class ConfigDict(t.TypedDict, total=False):
109
"""TypedDict for repository configuration dictionary.
1110
1211
This is used primarily in test fixtures and legacy code paths.
@@ -19,3 +18,14 @@ class ConfigDict(TypedDict, total=False):
1918
remotes: dict[str, t.Any] # Can contain various remote types
2019
rev: str
2120
shell_command_after: str | list[str]
21+
22+
23+
class Config(t.TypedDict):
24+
"""TypedDict for config dictionary.
25+
26+
Used for untyped access to config data before parsing.
27+
"""
28+
29+
settings: t.Optional[t.Dict[str, t.Any]]
30+
repositories: t.Optional[t.List[t.Dict[str, t.Any]]]
31+
includes: t.Optional[t.List[str]]

0 commit comments

Comments
 (0)