fix src/Config.py type hinting
This commit is contained in:
parent
7274d1bf28
commit
fc069d6da2
1 changed files with 3 additions and 2 deletions
|
@ -1,12 +1,13 @@
|
|||
import collections, configparser, os, typing
|
||||
|
||||
class Config(object):
|
||||
|
||||
def __init__(self, location: str):
|
||||
self.location = location
|
||||
self._config = collections.OrderedDict()
|
||||
self._config: typing.Dict[str, str] = collections.OrderedDict()
|
||||
|
||||
def _parser(self) -> configparser.ConfigParser:
|
||||
return configparser.ConfigParser(dict_type=collections.OrderedDict)
|
||||
return configparser.ConfigParser()
|
||||
|
||||
def load(self):
|
||||
if os.path.isfile(self.location):
|
||||
|
|
Loading…
Reference in a new issue