Skip to content

Commit f58ecf7

Browse files
committed
fix pyright issues
1 parent 04eb963 commit f58ecf7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

mcp_proxy_for_aws/proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class AWSMCPProxy(_FastMCPProxy):
7878
def __init__(
7979
self,
8080
*,
81-
client_factory: ClientFactoryT | None = None,
81+
client_factory: ClientFactoryT,
8282
**kwargs,
8383
):
8484
"""Initialize a client."""

tests/unit/test_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ def test_create_transport_with_sigv4_kwargs_passthrough(
138138

139139
assert hasattr(result, 'httpx_client_factory')
140140
factory = result.httpx_client_factory
141-
factory(headers=None, timeout=None, auth=None, follow_redirects=True)
141+
assert factory is not None
142+
factory(headers=None, timeout=None, auth=None, follow_redirects=True) # type: ignore[call-arg]
142143

143144
mock_create_sigv4_client.assert_called_once_with(
144145
service=service,

0 commit comments

Comments
 (0)