File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 33from __future__ import annotations
44
55import 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 ]]
You can’t perform that action at this time.
0 commit comments