fixed

Benchling SDK 1.21.1 Release Notes

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 the headers parameter was made more general using a protocol. Besides accepting dict and Mapping[str, Any], it now also accepts objects that don't fully implement Mapping but do implement __getitem__ and __contains__. This allows the Headers class from Flask/Werkzeug, which is only partly dict-like. (The release notes for version 1.21.0 wrongly suggested that Headers 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 .