Skip to content

Commit 392ad0e

Browse files
tpayetclaude
andcommitted
fix: Fix mypy error in __exit__ method return type
Changed __exit__ return type from bool to None as it should not return False explicitly. This fixes the mypy type checking error. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 72e97b5 commit 392ad0e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

meilisearch/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,10 +792,9 @@ def __enter__(self) -> "Client":
792792
"""Support using the client as a context manager."""
793793
return self
794794

795-
def __exit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> bool:
795+
def __exit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> None:
796796
"""Clean up when exiting the context manager."""
797797
self.close()
798-
return False
799798

800799
def __del__(self) -> None:
801800
"""Ensure cleanup on object destruction."""

0 commit comments

Comments
 (0)