Skip to content

Commit e358cce

Browse files
author
maxime.c
committed
fix mypy
1 parent 07f1ce3 commit e358cce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

airbyte_cdk/sources/streams/http/http_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
BODY_REQUEST_METHODS = ("GET", "POST", "PUT", "PATCH")
5757

5858

59-
def monkey_patched_get_item(self, key):
59+
def monkey_patched_get_item(self, key): # type: ignore # this interface is a copy/paste from the requests_cache lib
6060
"""
6161
con.execute can lead to `sqlite3.InterfaceError: bad parameter or other API misuse`. There was a fix implemented
6262
[here](https://github.com/requests-cache/requests-cache/commit/5ca6b9cdcb2797dd2fed485872110ccd72aee55d#diff-f43db4a5edf931647c32dec28ea7557aae4cae8444af4b26c8ecbe88d8c925aaL330-R332)
@@ -74,7 +74,7 @@ def monkey_patched_get_item(self, key):
7474
return self.deserialize(key, row[0])
7575

7676

77-
requests_cache.SQLiteDict.__getitem__ = monkey_patched_get_item
77+
requests_cache.SQLiteDict.__getitem__ = monkey_patched_get_item # type: ignore # see the method doc for more information
7878

7979

8080
class MessageRepresentationAirbyteTracedErrors(AirbyteTracedException):

0 commit comments

Comments
 (0)