This commit is contained in:
@@ -33,9 +33,10 @@ from . import ini
|
||||
|
||||
|
||||
class RawConfigParser:
|
||||
def __init__(self, defaults: Optional[Dict[str, str]] = None, dict_type: Union[Type[Dict], str] = dict):
|
||||
if not isinstance(dict_type, dict):
|
||||
def __init__(self, defaults=None, dict_type=dict):
|
||||
if dict_type is not dict:
|
||||
raise ValueError("Custom dict types not supported")
|
||||
|
||||
self.data = ini.INIConfig(defaults=defaults, optionxformsource=self)
|
||||
|
||||
def optionxform(self, optionstr: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user