We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca788cd commit 2a5d30fCopy full SHA for 2a5d30f
1 file changed
src/vcspull/types.py
@@ -3,10 +3,9 @@
3
from __future__ import annotations
4
5
import typing as t
6
-from typing import TypedDict
7
8
9
-class ConfigDict(TypedDict, total=False):
+class ConfigDict(t.TypedDict, total=False):
10
"""TypedDict for repository configuration dictionary.
11
12
This is used primarily in test fixtures and legacy code paths.
@@ -19,3 +18,14 @@ class ConfigDict(TypedDict, total=False):
19
18
remotes: dict[str, t.Any] # Can contain various remote types
20
rev: str
21
shell_command_after: str | list[str]
+
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