1
1
from _typeshed import SupportsNoArgReadline
2
- from typing import IO , Any , Dict , List , Sequence , Tuple
2
+ from typing import IO , Any , Sequence
3
3
4
4
DEFAULTSECT : str
5
5
MAX_INTERPOLATION_DEPTH : int
@@ -42,7 +42,7 @@ class InterpolationDepthError(InterpolationError):
42
42
43
43
class ParsingError (Error ):
44
44
filename : str
45
- errors : List [ Tuple [Any , Any ]]
45
+ errors : list [ tuple [Any , Any ]]
46
46
def __init__ (self , filename : str ) -> None : ...
47
47
def append (self , lineno : Any , line : Any ) -> None : ...
48
48
@@ -53,26 +53,26 @@ class MissingSectionHeaderError(ParsingError):
53
53
54
54
class RawConfigParser :
55
55
_dict : Any
56
- _sections : Dict [Any , Any ]
57
- _defaults : Dict [Any , Any ]
56
+ _sections : dict [Any , Any ]
57
+ _defaults : dict [Any , Any ]
58
58
_optcre : Any
59
59
SECTCRE : Any
60
60
OPTCRE : Any
61
61
OPTCRE_NV : Any
62
- def __init__ (self , defaults : Dict [Any , Any ] = ..., dict_type : Any = ..., allow_no_value : bool = ...) -> None : ...
63
- def defaults (self ) -> Dict [Any , Any ]: ...
64
- def sections (self ) -> List [str ]: ...
62
+ def __init__ (self , defaults : dict [Any , Any ] = ..., dict_type : Any = ..., allow_no_value : bool = ...) -> None : ...
63
+ def defaults (self ) -> dict [Any , Any ]: ...
64
+ def sections (self ) -> list [str ]: ...
65
65
def add_section (self , section : str ) -> None : ...
66
66
def has_section (self , section : str ) -> bool : ...
67
- def options (self , section : str ) -> List [str ]: ...
68
- def read (self , filenames : str | Sequence [str ]) -> List [str ]: ...
67
+ def options (self , section : str ) -> list [str ]: ...
68
+ def read (self , filenames : str | Sequence [str ]) -> list [str ]: ...
69
69
def readfp (self , fp : SupportsNoArgReadline [str ], filename : str = ...) -> None : ...
70
70
def get (self , section : str , option : str ) -> str : ...
71
- def items (self , section : str ) -> List [ Tuple [Any , Any ]]: ...
71
+ def items (self , section : str ) -> list [ tuple [Any , Any ]]: ...
72
72
def _get (self , section : str , conv : type , option : str ) -> Any : ...
73
73
def getint (self , section : str , option : str ) -> int : ...
74
74
def getfloat (self , section : str , option : str ) -> float : ...
75
- _boolean_states : Dict [str , bool ]
75
+ _boolean_states : dict [str , bool ]
76
76
def getboolean (self , section : str , option : str ) -> bool : ...
77
77
def optionxform (self , optionstr : str ) -> str : ...
78
78
def has_option (self , section : str , option : str ) -> bool : ...
@@ -84,14 +84,14 @@ class RawConfigParser:
84
84
85
85
class ConfigParser (RawConfigParser ):
86
86
_KEYCRE : Any
87
- def get (self , section : str , option : str , raw : bool = ..., vars : Dict [Any , Any ] | None = ...) -> Any : ...
88
- def items (self , section : str , raw : bool = ..., vars : Dict [Any , Any ] | None = ...) -> List [ Tuple [str , Any ]]: ...
87
+ def get (self , section : str , option : str , raw : bool = ..., vars : dict [Any , Any ] | None = ...) -> Any : ...
88
+ def items (self , section : str , raw : bool = ..., vars : dict [Any , Any ] | None = ...) -> list [ tuple [str , Any ]]: ...
89
89
def _interpolate (self , section : str , option : str , rawval : Any , vars : Any ) -> str : ...
90
90
def _interpolation_replace (self , match : Any ) -> str : ...
91
91
92
92
class SafeConfigParser (ConfigParser ):
93
93
_interpvar_re : Any
94
94
def _interpolate (self , section : str , option : str , rawval : Any , vars : Any ) -> str : ...
95
95
def _interpolate_some (
96
- self , option : str , accum : List [Any ], rest : str , section : str , map : Dict [Any , Any ], depth : int
96
+ self , option : str , accum : list [Any ], rest : str , section : str , map : dict [Any , Any ], depth : int
97
97
) -> None : ...
0 commit comments