Skip to content

Commit

Permalink
Silence some pytype errors.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 578926084
  • Loading branch information
rchen152 authored and copybara-github committed Nov 2, 2023
1 parent 7764d63 commit 06498e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/core/diagnoses_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class DiagnoserTest(unittest.TestCase):

def test_phase_diagnoser_name_from_function(self):

@htf.PhaseDiagnoser(OkayResult.OKAY)
@htf.PhaseDiagnoser(OkayResult.OKAY) # pytype: disable=wrong-arg-types # use-enum-overlay
def from_function(phase_record):
del phase_record # Unused.
return None
Expand All @@ -207,7 +207,7 @@ def from_function(phase_record):

def test_phase_diagnoser_name_set(self):

@htf.PhaseDiagnoser(OkayResult.OKAY, name='from_arg')
@htf.PhaseDiagnoser(OkayResult.OKAY, name='from_arg') # pytype: disable=wrong-arg-types # use-enum-overlay
def from_function(phase_record):
del phase_record # Unused.
return None
Expand All @@ -230,7 +230,7 @@ def unused_diag(phase_record):

def test_test_diagnoser_name_from_function(self):

@htf.TestDiagnoser(OkayResult.OKAY)
@htf.TestDiagnoser(OkayResult.OKAY) # pytype: disable=wrong-arg-types # use-enum-overlay
def from_function(test_record_, store):
del test_record_ # Unused.
del store # Unused.
Expand All @@ -240,7 +240,7 @@ def from_function(test_record_, store):

def test_test_diagnoser_name_set(self):

@htf.TestDiagnoser(OkayResult.OKAY, name='from_arg')
@htf.TestDiagnoser(OkayResult.OKAY, name='from_arg') # pytype: disable=wrong-arg-types # use-enum-overlay
def from_function(test_record_, store):
del test_record_ # Unused.
del store # Unused.
Expand Down
2 changes: 1 addition & 1 deletion test/core/phase_collections_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ class _Diag(htf.DiagResultEnum):

subtest = phase_collections.Subtest(
'skip_branch', fail_subtest_phase,
htf.BranchSequence(_Diag.NOT_SET, error_phase), skip_phase)
htf.BranchSequence(_Diag.NOT_SET, error_phase), skip_phase) # pytype: disable=wrong-arg-types # use-enum-overlay

test_rec = yield htf.Test(subtest, phase)

Expand Down

0 comments on commit 06498e4

Please sign in to comment.