mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 08:47:39 +08:00
mark fb303.fb303.FacebookService.Client as a context manager (#5542)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Any
|
||||
from typing import Any, ContextManager
|
||||
|
||||
from thrift.Thrift import TProcessor # type: ignore
|
||||
|
||||
@@ -19,7 +19,7 @@ class Iface:
|
||||
def reinitialize(self): ...
|
||||
def shutdown(self): ...
|
||||
|
||||
class Client(Iface):
|
||||
class Client(Iface, ContextManager[Client]):
|
||||
def __init__(self, iprot, oprot=...) -> None: ...
|
||||
def getName(self): ...
|
||||
def send_getName(self): ...
|
||||
|
||||
Reference in New Issue
Block a user