diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-13 01:33:14 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-15 02:42:42 +0900 |
commit | 53917f228f9bfbb4607b6441119baeb129869b93 (patch) | |
tree | 4e87e2e8a2fc209f74a3675dc0f079bda78b6a3b /sphinx/config.py | |
parent | f8a2e7aa8af27b9d90330d9d795ef20fe0158001 (diff) | |
download | sphinx-git-53917f228f9bfbb4607b6441119baeb129869b93.tar.gz |
Move to py3 mode for mypy (and remove many "type: ignore" comments)
Diffstat (limited to 'sphinx/config.py')
-rw-r--r-- | sphinx/config.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/config.py b/sphinx/config.py index 722592905..017307cb3 100644 --- a/sphinx/config.py +++ b/sphinx/config.py @@ -274,7 +274,7 @@ class Config: logger.warning("%s", exc) for name in config: if name in self.values: - self.__dict__[name] = config[name] # type: ignore + self.__dict__[name] = config[name] def __getattr__(self, name): # type: (unicode) -> Any @@ -306,7 +306,7 @@ class Config: def __iter__(self): # type: () -> Generator[ConfigValue, None, None] for name, value in self.values.items(): - yield ConfigValue(name, getattr(self, name), value[1]) # type: ignore + yield ConfigValue(name, getattr(self, name), value[1]) def add(self, name, default, rebuild, types): # type: (unicode, Any, Union[bool, unicode], Any) -> None @@ -334,7 +334,7 @@ class Config: # create a picklable copy of values list __dict__['values'] = {} - for key, value in self.values.items(): # type: ignore + for key, value in self.values.items(): real_value = getattr(self, key) if not is_serializable(real_value): # omit unserializable value |