From cc2a537a3ed47552fc6711293373f5e14617bd72 Mon Sep 17 00:00:00 2001 From: ronantakizawa Date: Fri, 7 Nov 2025 18:10:29 -0700 Subject: [PATCH] fix: fix grammar and syntax issues --- README.md | 4 ++-- pyproject.toml | 2 +- src/agentmail/client.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ba4fa23..ad96eb8 100644 --- a/README.md +++ b/README.md @@ -183,7 +183,7 @@ client = AgentMail(...) with client.websockets.connect(...) as socket: # Iterate over the messages as they arrive - for message in socket + for message in socket: print(message) # Or, attach handlers to specific events @@ -209,7 +209,7 @@ client = AsyncAgentMail(...) async with client.websockets.connect(...) as socket: # Iterate over the messages as they arrive - async for message in socket + async for message in socket: print(message) # Or, attach handlers to specific events diff --git a/pyproject.toml b/pyproject.toml index 874ee31..a9f1317 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -70,7 +70,7 @@ ignore = [ "E501", # Line too long "E711", # Comparison to `None` should be `cond is not None` "E712", # Avoid equality comparisons to `True`; use `if ...:` checks - "E721", # Use `is` and `is not` for type comparisons, or `isinstance()` for insinstance checks + "E721", # Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks "E722", # Do not use bare `except` "E731", # Do not assign a `lambda` expression, use a `def` "F821", # Undefined name diff --git a/src/agentmail/client.py b/src/agentmail/client.py index 113051c..508b73c 100644 --- a/src/agentmail/client.py +++ b/src/agentmail/client.py @@ -73,7 +73,7 @@ def __init__( ) if api_key is None: raise ApiError( - body="The client must be instantiated be either passing in api_key or setting AGENTMAIL_API_KEY" + body="The client must be instantiated by either passing in api_key or setting AGENTMAIL_API_KEY" ) self._client_wrapper = SyncClientWrapper( environment=environment, @@ -212,7 +212,7 @@ def __init__( ) if api_key is None: raise ApiError( - body="The client must be instantiated be either passing in api_key or setting AGENTMAIL_API_KEY" + body="The client must be instantiated by either passing in api_key or setting AGENTMAIL_API_KEY" ) self._client_wrapper = AsyncClientWrapper( environment=environment,