From 0ee7315f1713325fcf3e3d5bb51d4a7cf4daccd2 Mon Sep 17 00:00:00 2001 From: generatedunixname89002005307016 Date: Thu, 16 Jan 2025 17:22:19 -0800 Subject: [PATCH] Add missing Pyre mode headers] [batch:24/1523] [shard:39/N] [A] Differential Revision: D68239370 fbshipit-source-id: 25f2b0d1d114707b26f0b2fe0f72839b258e73bb --- third-party/thrift/src/thrift/lib/python/__init__.py | 2 ++ third-party/thrift/src/thrift/lib/python/metadata.py | 2 ++ third-party/thrift/src/thrift/lib/python/test/typeinfo_test.pyi | 2 ++ 3 files changed, 6 insertions(+) diff --git a/third-party/thrift/src/thrift/lib/python/__init__.py b/third-party/thrift/src/thrift/lib/python/__init__.py index 81b48a774d1416..0e578ef827079b 100644 --- a/third-party/thrift/src/thrift/lib/python/__init__.py +++ b/third-party/thrift/src/thrift/lib/python/__init__.py @@ -12,6 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +# pyre-unsafe + try: # pyre-fixme[21]: Could not find module `thrift.python.abstract_types`. import thrift.python.abstract_types as abstract_types # noqa: 401 diff --git a/third-party/thrift/src/thrift/lib/python/metadata.py b/third-party/thrift/src/thrift/lib/python/metadata.py index 9d88cd34b9377f..80a61a7034ed93 100644 --- a/third-party/thrift/src/thrift/lib/python/metadata.py +++ b/third-party/thrift/src/thrift/lib/python/metadata.py @@ -12,6 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +# pyre-unsafe + from __future__ import annotations diff --git a/third-party/thrift/src/thrift/lib/python/test/typeinfo_test.pyi b/third-party/thrift/src/thrift/lib/python/test/typeinfo_test.pyi index aceed252ebe926..4ea91b6b7f97d0 100644 --- a/third-party/thrift/src/thrift/lib/python/test/typeinfo_test.pyi +++ b/third-party/thrift/src/thrift/lib/python/test/typeinfo_test.pyi @@ -12,6 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +# pyre-unsafe + import typing import unittest