Move Python 2-only stubs to @python2 directory (#5660)

This commit is contained in:
Sebastian Rittau
2021-06-21 20:28:25 +02:00
committed by GitHub
parent a319ba4604
commit 68dc2d132b
47 changed files with 22 additions and 33 deletions

View File

@@ -1,10 +1,11 @@
from typing import Any
import fb303.FacebookService
from thrift.Thrift import TProcessor # type: ignore # We don't have thrift stubs in typeshed
from .ttypes import * # noqa: F403
TProcessor = Any # actually thrift.Thrift.TProcessor
class Iface(fb303.FacebookService.Iface):
def Log(self, messages): ...

View File

@@ -1,4 +1,2 @@
version = "0.1"
python2 = true
python3 = false
requires = ["types-fb303"]