Make many typing fixes, based on mypy-0.590.

This commit is contained in:
Mike Auty
2018-04-22 20:45:59 +01:00
parent 0c28717322
commit 623180ddbd
18 changed files with 65 additions and 50 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ if typing.TYPE_CHECKING:
class FileInterface(validity.ValidityRoutines, metaclass = ABCMeta):
"""Class for storing Files in the plugin as a means to output a file or files when necessary"""
def __init__(self, filename: str, data: bytes = None):
def __init__(self, filename: str, data: bytes = None) -> None:
self.preferred_filename = filename
self.data = io.BytesIO(data)