Skip to content

Commit 99a9719

Browse files
authored
mark fb303.fb303.FacebookService.Client as a context manager (#5542)
1 parent ca256b8 commit 99a9719

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stubs/fb303/fb303/FacebookService.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any
1+
from typing import Any, ContextManager
22

33
from thrift.Thrift import TProcessor # type: ignore
44

@@ -19,7 +19,7 @@ class Iface:
1919
def reinitialize(self): ...
2020
def shutdown(self): ...
2121

22-
class Client(Iface):
22+
class Client(Iface, ContextManager[Client]):
2323
def __init__(self, iprot, oprot=...) -> None: ...
2424
def getName(self): ...
2525
def send_getName(self): ...

0 commit comments

Comments
 (0)