diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-01-22 21:26:58 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-01-22 21:26:58 +0900 |
commit | 1679a0916da70f2ba25873a7babc0b1b06711325 (patch) | |
tree | 65cb9bd9b1609345fdd6cc9203e445bdad500e9d | |
parent | 4c0a283178b8f6973df21e08244bdf283a7b276d (diff) | |
download | sphinx-git-1679a0916da70f2ba25873a7babc0b1b06711325.tar.gz |
Fix mypy violations (with mypy-0.800)
-rw-r--r-- | setup.py | 2 | ||||
-rw-r--r-- | sphinx/builders/html/__init__.py | 4 | ||||
-rw-r--r-- | sphinx/util/i18n.py | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -44,7 +44,7 @@ extras_require = { 'lint': [ 'flake8>=3.5.0', 'isort', - 'mypy>=0.790', + 'mypy>=0.800', 'docutils-stubs', ], 'test': [ diff --git a/sphinx/builders/html/__init__.py b/sphinx/builders/html/__init__.py index 2c96ede32..699ab8189 100644 --- a/sphinx/builders/html/__init__.py +++ b/sphinx/builders/html/__init__.py @@ -92,7 +92,7 @@ class Stylesheet(str): filename = None # type: str def __new__(cls, filename: str, *args: str, **attributes: str) -> "Stylesheet": - self = str.__new__(cls, filename) # type: ignore + self = str.__new__(cls, filename) self.filename = filename self.attributes = attributes self.attributes.setdefault('rel', 'stylesheet') @@ -115,7 +115,7 @@ class JavaScript(str): filename = None # type: str def __new__(cls, filename: str, **attributes: str) -> "JavaScript": - self = str.__new__(cls, filename) # type: ignore + self = str.__new__(cls, filename) self.filename = filename self.attributes = attributes diff --git a/sphinx/util/i18n.py b/sphinx/util/i18n.py index e149976ef..3c1030d62 100644 --- a/sphinx/util/i18n.py +++ b/sphinx/util/i18n.py @@ -34,7 +34,7 @@ if False: logger = logging.getLogger(__name__) -LocaleFileInfoBase = namedtuple('CatalogInfo', 'base_dir,domain,charset') +LocaleFileInfoBase = namedtuple('LocaleFileInfoBase', 'base_dir,domain,charset') class CatalogInfo(LocaleFileInfoBase): |