fixed
Benchling SDK 1.21.1 Release Notes
6 days 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 theheaders
parameter was made more general using a protocol. Besides acceptingdict
andMapping[str, Any]
, it now also accepts objects that don't fully implementMapping
but do implement__getitem__
and__contains__
. This allows theHeaders
class from Flask/Werkzeug, which is only partly dict-like. (The release notes for version 1.21.0 wrongly suggested thatHeaders
would 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 .