Merge pull request #8728 from tk0miya/mypy-0.800

Fix mypy violations (with mypy-0.800)
This commit is contained in:
Takeshi KOMIYA 2021-01-22 21:39:01 +09:00 committed by GitHub
commit aebfbbb532
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@ extras_require = {
'lint': [
'flake8>=3.5.0',
'isort',
'mypy>=0.790',
'mypy>=0.800',
'docutils-stubs',
],
'test': [

View File

@ -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

View File

@ -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):