From 40d6faeccd7e28eef08fed585c13e7c7c8087e48 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 9 Feb 2018 09:11:59 -0800 Subject: [PATCH] Ignore thrift imports (#1869) Fixes #1868 --- third_party/2/fb303/FacebookService.pyi | 2 +- third_party/2/scribe/scribe.pyi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/2/fb303/FacebookService.pyi b/third_party/2/fb303/FacebookService.pyi index c863f2853..2f23924e8 100644 --- a/third_party/2/fb303/FacebookService.pyi +++ b/third_party/2/fb303/FacebookService.pyi @@ -1,5 +1,5 @@ from typing import Any -from thrift.Thrift import TProcessor +from thrift.Thrift import TProcessor # type: ignore fastbinary = ... # type: Any diff --git a/third_party/2/scribe/scribe.pyi b/third_party/2/scribe/scribe.pyi index 4d9a2866a..bd7262b1a 100644 --- a/third_party/2/scribe/scribe.pyi +++ b/third_party/2/scribe/scribe.pyi @@ -2,7 +2,7 @@ from typing import Any import fb303.FacebookService from .ttypes import * # noqa: F403 -from thrift.Thrift import TProcessor +from thrift.Thrift import TProcessor # type: ignore # We don't have thrift stubs in typeshed class Iface(fb303.FacebookService.Iface): def Log(self, messages): ...