mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-06 01:47:41 +08:00
Re-organize directory structure (#4971)
See discussion in #2491 Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
This commit is contained in:
4
stubs/scribe/METADATA.toml
Normal file
4
stubs/scribe/METADATA.toml
Normal file
@@ -0,0 +1,4 @@
|
||||
version = "0.1"
|
||||
python2 = true
|
||||
python3 = false
|
||||
requires = ["types-fb303"]
|
||||
0
stubs/scribe/scribe/__init__.pyi
Normal file
0
stubs/scribe/scribe/__init__.pyi
Normal file
40
stubs/scribe/scribe/scribe.pyi
Normal file
40
stubs/scribe/scribe/scribe.pyi
Normal file
@@ -0,0 +1,40 @@
|
||||
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
|
||||
|
||||
class Iface(fb303.FacebookService.Iface):
|
||||
def Log(self, messages): ...
|
||||
|
||||
class Client(fb303.FacebookService.Client, Iface):
|
||||
def __init__(self, iprot, oprot=...) -> None: ...
|
||||
def Log(self, messages): ...
|
||||
def send_Log(self, messages): ...
|
||||
def recv_Log(self): ...
|
||||
|
||||
class Processor(fb303.FacebookService.Processor, Iface, TProcessor): # type: ignore
|
||||
def __init__(self, handler) -> None: ...
|
||||
def process(self, iprot, oprot): ...
|
||||
def process_Log(self, seqid, iprot, oprot): ...
|
||||
|
||||
class Log_args:
|
||||
thrift_spec: Any
|
||||
messages: Any
|
||||
def __init__(self, messages=...) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
def __eq__(self, other): ...
|
||||
def __ne__(self, other): ...
|
||||
|
||||
class Log_result:
|
||||
thrift_spec: Any
|
||||
success: Any
|
||||
def __init__(self, success=...) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
def __eq__(self, other): ...
|
||||
def __ne__(self, other): ...
|
||||
18
stubs/scribe/scribe/ttypes.pyi
Normal file
18
stubs/scribe/scribe/ttypes.pyi
Normal file
@@ -0,0 +1,18 @@
|
||||
from typing import Any
|
||||
|
||||
fastbinary: Any
|
||||
|
||||
class ResultCode:
|
||||
OK: Any
|
||||
TRY_LATER: Any
|
||||
|
||||
class LogEntry:
|
||||
thrift_spec: Any
|
||||
category: Any
|
||||
message: Any
|
||||
def __init__(self, category=..., message=...) -> None: ...
|
||||
def read(self, iprot): ...
|
||||
def write(self, oprot): ...
|
||||
def validate(self): ...
|
||||
def __eq__(self, other): ...
|
||||
def __ne__(self, other): ...
|
||||
Reference in New Issue
Block a user