Skip to content

Commit 6844421

Browse files
rokpaddyroddy
andauthored
GH-16: [Python] Fix too-many-positional-arguments (#35)
* Add py.typed file to signify that the library is typed See the relevant PEP https://peps.python.org/pep-0561 * Prepare `pyarrow-stubs` for history merging MINOR: [Python] Prepare `pyarrow-stubs` for history merging Co-authored-by: ZhengYu, Xu <zen-xu@outlook.com> * Add `ty` configuration and suppress error codes * One line per rule * Add licence header from original repo for all `.pyi` files * Revert "Add licence header from original repo for all `.pyi` files" This reverts commit 1631f39. * Prepare for licence merging * Exclude `stubs` from `rat` test * Add Apache licence clause to `py.typed` * Reduce list * Add `ty` as a step in the action * Run in the correct directory * Remove `check` from `pip` * Fix `unresolved-reference` error * Revert "Fix `unresolved-reference` error" This reverts commit 7ee3d2f. * Fix too-many-positional-arguments --------- Co-authored-by: Patrick J. Roddy <patrickjamesroddy@gmail.com>
1 parent 0884fd1 commit 6844421

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

python/pyarrow/tests/test_flight.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,15 @@ def __exit__(self, exc_type, exc_value, traceback):
5656
pass
5757

5858
flight = None
59-
FlightClient, FlightServerBase = context_like, context_like
59+
class MockContextManager:
60+
def __enter__(self):
61+
return self
62+
def __exit__(self, exc_type, exc_val, exc_tb):
63+
pass
64+
class FlightServerBase(MockContextManager):
65+
pass
66+
class FlightClient(MockContextManager):
67+
pass
6068
ServerAuthHandler, ClientAuthHandler = object, object
6169
ServerMiddleware, ServerMiddlewareFactory = object, object
6270
ClientMiddleware, ClientMiddlewareFactory = object, object

0 commit comments

Comments
 (0)