Skip to content

Commit 4241d09

Browse files
committed
Update CHANGELOG for v4.1.0 release
Document release 4.1.0 (2026-02-06): added comprehensive type annotations and return types, fixed response.content typing via cast(), resolved variable redefinition issues in try/except to satisfy mypy, introduced Optional types and logger guards, corrected imports and type compatibility, and refactored response handling into a ResponseData structure.
1 parent 4811531 commit 4241d09

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2026/02/06 - RELEASE 4.1.0
2+
==========================
3+
- Added type annotations and return types - Added -> None, -> str, -> Dict[str, Any], etc. to functions missing return type annotations, and added proper type parameters to generic types like Dict, List, and Tuple
4+
- Fixed response.content type casting - Wrapped all response.content assignments with cast(Dict[str, Any], ...) or appropriate type since the async response content is a union type (str | bytes | bool | dict | list)
5+
- Fixed variable redefinitions in try/except blocks - Changed patterns like var: Type = value in both try and except branches to declare the type first (var: Type) then assign in each branch to avoid mypy "already defined" errors
6+
- Added Optional types and logger guards - Changed function parameters from List[T] = None to Optional[List[T]] = None, and wrapped logger calls with if logger: guards since the logger can be None
7+
- Fixed imports and type compatibility issues - Corrected import paths for symbols like DEFAULT_TIMEOUT, changed setter parameter types to accept Optional[str] where needed, and used cast() with Literal types for enum-like values
8+
- Refactored response handling - Moved response handling code out of the client classes into a separate structure ResponseData
9+
110
2026/01/21 - RELEASE 4.0.4
211
==========================
312
- Adding a new function to use filtering of documents endpoint

0 commit comments

Comments
 (0)