Commit b2dd0302 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras
Browse files

581 type annotations remaining.

parent 6369e391
PY_SRC:=$(wildcard dmt/asn2dataModel.py dmt/aadl2glueC.py dmt/smp2asn.py dmt/*mappers/[a-zA-Z]*py dmt/commonPy/[a-zA-Z]*py) PY_SRC:=$(wildcard dmt/asn2dataModel.py dmt/aadl2glueC.py dmt/smp2asn.py dmt/*mappers/[a-zA-Z]*py dmt/commonPy/[a-zA-Z]*py)
PY_SRC:=$(filter-out dmt/B_mappers/antlr.main.py dmt/A_mappers/Stubs.py, ${PY_SRC}) PY_SRC:=$(filter-out dmt/B_mappers/antlr.main.py dmt/A_mappers/Stubs.py dmt/B_mappers/pyside_B_mapper.py, ${PY_SRC})
all: flake8 pylint mypy coverage all: flake8 pylint coverage
flake8: flake8:
@echo Performing syntax checks via flake8... @echo Performing syntax checks via flake8...
...@@ -13,7 +13,7 @@ pylint: ...@@ -13,7 +13,7 @@ pylint:
mypy: mypy:
@echo Performing type analysis via mypy... @echo Performing type analysis via mypy...
@mypy --check-untyped-defs ${PY_SRC} || exit 1 @mypy --disallow-untyped-defs --check-untyped-defs ${PY_SRC} || exit 1
coverage: coverage:
@echo Performing coverage checks... @echo Performing coverage checks...
......
...@@ -39,7 +39,8 @@ from ..commonPy.cleanupNodes import SetOfBadTypenames ...@@ -39,7 +39,8 @@ from ..commonPy.cleanupNodes import SetOfBadTypenames
from ..commonPy.asnAST import ( from ..commonPy.asnAST import (
AsnBasicNode, AsnSequenceOrSet, AsnSequenceOrSetOf, AsnBool, AsnInt, AsnBasicNode, AsnSequenceOrSet, AsnSequenceOrSetOf, AsnBool, AsnInt,
AsnReal, AsnString, AsnEnumerated, AsnSequence, AsnSet, AsnChoice, AsnReal, AsnString, AsnEnumerated, AsnSequence, AsnSet, AsnChoice,
AsnMetaMember, AsnSequenceOf, AsnSetOf, AsnNode) AsnMetaMember, AsnSequenceOf, AsnSetOf)
from ..commonPy.asnAST import AsnNode # NOQA pylint: disable=unused-import
from ..commonPy.asnParser import AST_Leaftypes, AST_Lookup from ..commonPy.asnParser import AST_Leaftypes, AST_Lookup
# The file written to # The file written to
......
...@@ -24,13 +24,12 @@ Semantix's code generator A.''' ...@@ -24,13 +24,12 @@ Semantix's code generator A.'''
import os import os
import re import re
from typing import Union, IO, Any # NOQA pylint: disable=unused-import from typing import List, Union, IO, Any # NOQA pylint: disable=unused-import
from ..commonPy.asnAST import ( from ..commonPy.asnAST import (
AsnMetaMember, AsnChoice, AsnSet, AsnSequence, AsnSequenceOf, AsnMetaMember, AsnChoice, AsnSet, AsnSequence, AsnSequenceOf,
AsnSetOf, isSequenceVariable, AsnBasicNode, AsnSequenceOrSet, AsnSetOf, isSequenceVariable, AsnBasicNode, AsnSequenceOrSet,
AsnSequenceOrSetOf, AsnEnumerated, AsnInt, AsnReal, AsnString, AsnSequenceOrSetOf, AsnEnumerated, AsnInt, AsnReal, AsnString)
AsnNode)
from ..commonPy.asnParser import g_names, g_leafTypeDict, CleanNameForAST, AST_Leaftypes from ..commonPy.asnParser import g_names, g_leafTypeDict, CleanNameForAST, AST_Leaftypes
from ..commonPy.utility import panic, warn from ..commonPy.utility import panic, warn
from ..commonPy.cleanupNodes import SetOfBadTypenames from ..commonPy.cleanupNodes import SetOfBadTypenames
...@@ -146,7 +145,7 @@ def FixupAstForSQLAlchemy() -> None: ...@@ -146,7 +145,7 @@ def FixupAstForSQLAlchemy() -> None:
g_bStartupRun = False g_bStartupRun = False
def OnStartup(unused_modelingLanguage: str, asnFiles: Union[str, List[str]], outputDir: str, unused_badTypes: SetOfBadTypenames) -> None: def OnStartup(unused_modelingLanguage: str, asnFiles: Union[str, List[str]], outputDir: str, unused_badTypes: SetOfBadTypenames) -> None: # pylint: disable=invalid-sequence-index
''' '''
SQL cannot represent unnamed inner types SQL cannot represent unnamed inner types
e.g. this... e.g. this...
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment