You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description:
As the first parameter passed to the check_type function from typeguard package is unexpected, the execution breaks with the following TypeError: TypeError: check_type() takes 2 positional arguments but 3 were given
Thank you @KnightCoder for raising this issue. The SDK v0.5 implementation is using the typeguard v2.x API but the v3 brought breaking changes.
We had recommended pinning the version of the typeguard ~=2.12.1 before this PR addresses in the soon to be released patch build v0.5.1
Issue description:
As the first parameter passed to the check_type function from typeguard package is unexpected, the execution breaks with the following TypeError:
TypeError: check_type() takes 2 positional arguments but 3 were given
Check the incorrect line of code here:
monai-deploy-app-sdk/monai/deploy/core/io_context.py
Line 112 in 1437309
More reference:
Typeguard API reference doc: https://typeguard.readthedocs.io/en/latest/api.html#typeguard.check_type
Suggested correction:
Instead, the code must have been:
check_type(value, data_type)
The text was updated successfully, but these errors were encountered: