Disable mypy arg-type and assignment checks in tests (#59428)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
17e9295dd5
commit
fc2c801ad9
@@ -135,7 +135,7 @@ def test_attention_checks_preserve_global_and_target_scoped_support():
|
||||
_TargetBackend,
|
||||
["target"],
|
||||
spec,
|
||||
0, # type: ignore[arg-type]
|
||||
0,
|
||||
)
|
||||
target_group.metadata_builders = [
|
||||
_FakeMetadataBuilder(AttentionCGSupport.ALWAYS) # type: ignore[list-item]
|
||||
@@ -144,7 +144,7 @@ def test_attention_checks_preserve_global_and_target_scoped_support():
|
||||
_DraftBackend,
|
||||
["draft"],
|
||||
spec,
|
||||
0, # type: ignore[arg-type]
|
||||
0,
|
||||
)
|
||||
draft_group.metadata_builders = [
|
||||
_FakeMetadataBuilder(AttentionCGSupport.UNIFORM_BATCH) # type: ignore[list-item]
|
||||
@@ -152,14 +152,14 @@ def test_attention_checks_preserve_global_and_target_scoped_support():
|
||||
groups = [[target_group, draft_group]]
|
||||
|
||||
# The runner-wide execution mode must still honor the drafter's limit.
|
||||
unfiltered = get_attn_cg_support(groups, None) # type: ignore[arg-type]
|
||||
unfiltered = get_attn_cg_support(groups, None)
|
||||
assert unfiltered.min_cg_support == AttentionCGSupport.UNIFORM_BATCH
|
||||
assert unfiltered.min_cg_attn_backend == "_DraftBackend"
|
||||
|
||||
# Adaptive verification validates only the target's varlen graphs.
|
||||
target_only = get_attn_cg_support(
|
||||
groups,
|
||||
None, # type: ignore[arg-type]
|
||||
None,
|
||||
checked_layer_names={"target"},
|
||||
)
|
||||
assert target_only.min_cg_support == AttentionCGSupport.ALWAYS
|
||||
@@ -176,7 +176,7 @@ def test_attention_checks_preserve_global_and_target_scoped_support():
|
||||
draft_group.layer_names.append("target")
|
||||
target_with_shared_group = get_attn_cg_support(
|
||||
groups,
|
||||
None, # type: ignore[arg-type]
|
||||
None,
|
||||
checked_layer_names={"target"},
|
||||
)
|
||||
assert target_with_shared_group.min_cg_support == AttentionCGSupport.UNIFORM_BATCH
|
||||
|
||||
Reference in New Issue
Block a user