Fixed
Benchling SDK 1.21.1 Release Notes
12 months ago by Eli Bishop
This is a patch release to improve on the type hint fix in the 1.21.0 release. It has no effect on the runtime behavior of the SDK.
What’s Changing?
Fixed
- In
benchling_sdk.apps.helpers.webhook_helpers.verify(), the type annotation for theheadersparameter was made more general using a protocol. Besides acceptingdictandMapping[str, Any], it now also accepts objects that don't fully implementMappingbut do implement__getitem__and__contains__. This allows theHeadersclass from Flask/Werkzeug, which is only partly dict-like. (The release notes for version 1.21.0 wrongly suggested thatHeaderswould already work, but the fix in 1.21.0 was not general enough for that.)
Version 1.21.1 of the Benchling SDK is now live! Find the SDK in PyPI .
