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 3
3
from __future__ import annotations
4
4
5
5
import typing as t
6
- from typing import TypedDict
7
6
8
7
9
- class ConfigDict (TypedDict , total = False ):
8
+ class ConfigDict (t . TypedDict , total = False ):
10
9
"""TypedDict for repository configuration dictionary.
11
10
12
11
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
19
rev : str
21
20
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