ansible-test - Simplify type hints.

pull/77180/head
Matt Clay 3 years ago
parent ea66cf189b
commit af2b1361ff

@ -18,14 +18,13 @@ from .. import (
CoverageAnalyzeConfig,
)
if t.TYPE_CHECKING:
TargetKey = t.TypeVar('TargetKey', int, t.Tuple[int, int])
NamedPoints = t.Dict[str, t.Dict[TargetKey, t.Set[str]]]
IndexedPoints = t.Dict[str, t.Dict[TargetKey, t.Set[int]]]
Arcs = t.Dict[str, t.Dict[t.Tuple[int, int], t.Set[int]]]
Lines = t.Dict[str, t.Dict[int, t.Set[int]]]
TargetIndexes = t.Dict[str, int]
TargetSetIndexes = t.Dict[t.FrozenSet[int], int]
TargetKey = t.TypeVar('TargetKey', int, t.Tuple[int, int])
NamedPoints = t.Dict[str, t.Dict[TargetKey, t.Set[str]]]
IndexedPoints = t.Dict[str, t.Dict[TargetKey, t.Set[int]]]
Arcs = t.Dict[str, t.Dict[t.Tuple[int, int], t.Set[int]]]
Lines = t.Dict[str, t.Dict[int, t.Set[int]]]
TargetIndexes = t.Dict[str, int]
TargetSetIndexes = t.Dict[t.FrozenSet[int], int]
class CoverageAnalyzeTargetsConfig(CoverageAnalyzeConfig):

@ -18,13 +18,12 @@ from . import (
write_report,
)
if t.TYPE_CHECKING:
from . import (
Arcs,
IndexedPoints,
Lines,
TargetIndexes,
)
from . import (
Arcs,
IndexedPoints,
Lines,
TargetIndexes,
)
class CoverageAnalyzeTargetsCombineConfig(CoverageAnalyzeTargetsConfig):

@ -21,11 +21,10 @@ from . import (
write_report,
)
if t.TYPE_CHECKING:
from . import (
NamedPoints,
TargetIndexes,
)
from . import (
NamedPoints,
TargetIndexes,
)
class CoverageAnalyzeTargetsFilterConfig(CoverageAnalyzeTargetsConfig):

@ -43,12 +43,11 @@ from . import (
write_report,
)
if t.TYPE_CHECKING:
from . import (
Arcs,
Lines,
TargetIndexes,
)
from . import (
Arcs,
Lines,
TargetIndexes,
)
class CoverageAnalyzeTargetsGenerateConfig(CoverageAnalyzeTargetsConfig):

@ -24,11 +24,10 @@ from . import (
write_report,
)
if t.TYPE_CHECKING:
from . import (
TargetIndexes,
IndexedPoints,
)
from . import (
TargetIndexes,
IndexedPoints,
)
class CoverageAnalyzeTargetsMissingConfig(CoverageAnalyzeTargetsConfig):

Loading…
Cancel
Save