Fixed for mypy 0.501.

The List and Dict types are no longer implicitly available. They must be
imported from typing.

Type annotations must appear before the doc comment in a function. Also
fix type errors in these functions that weren't detected before.
This commit is contained in:
Jakob Stoklund Olesen
2017-03-03 09:04:29 -08:00
parent 6d3ee32f7b
commit 8c5a69eb47
11 changed files with 31 additions and 14 deletions

View File

@@ -6,7 +6,7 @@ from __future__ import absolute_import
import srcgen
try:
from typing import Sequence # noqa
from typing import Sequence, List # noqa
from cdsl.isa import TargetISA # noqa
from cdsl.registers import RegBank, RegClass # noqa
except ImportError: