summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-01-22 21:39:01 +0900
committerGitHub <noreply@github.com>2021-01-22 21:39:01 +0900
commitaebfbbb532d2f887d3a372454be639f864c1690a (patch)
tree65cb9bd9b1609345fdd6cc9203e445bdad500e9d
parent4c0a283178b8f6973df21e08244bdf283a7b276d (diff)
parent1679a0916da70f2ba25873a7babc0b1b06711325 (diff)
downloadsphinx-git-aebfbbb532d2f887d3a372454be639f864c1690a.tar.gz
Merge pull request #8728 from tk0miya/mypy-0.800
Fix mypy violations (with mypy-0.800)
-rw-r--r--setup.py2
-rw-r--r--sphinx/builders/html/__init__.py4
-rw-r--r--sphinx/util/i18n.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index 8d40de1a8..dfc80578f 100644
--- a/setup.py
+++ b/setup.py
@@ -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):