From: Pyre Bot Jr <> Date: Tue, 10 Aug 2021 17:22:43 +0000 (-0700) Subject: [typing] suppress errors in `fbcode/caffe2` - batch 2 X-Git-Tag: accepted/tizen/8.0/unified/20231005.095509~1124 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6915bc07810c5a9e65d06a39f5ce089b99dd99b6;p=platform%2Fupstream%2Fpytorch.git [typing] suppress errors in `fbcode/caffe2` - batch 2 Test Plan: Sandcastle Differential Revision: D30222378 fbshipit-source-id: 6a0a5d210266f19de63273240a080365c9143eb0 --- diff --git a/caffe2/python/serialized_test/serialized_test_util.py b/caffe2/python/serialized_test/serialized_test_util.py index 20a08a2..7fa92a9 100644 --- a/caffe2/python/serialized_test/serialized_test_util.py +++ b/caffe2/python/serialized_test/serialized_test_util.py @@ -264,6 +264,7 @@ class SerializedTestCase(hu.HypothesisTestCase): def set_disable_serialized_check(self, val: bool): orig = getattr(_output_context, 'disable_serialized_check', False) try: + # pyre-fixme[16]: `local` has no attribute `disable_serialized_check`. _output_context.disable_serialized_check = val yield finally: