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
from __future__ import annotations turns type annotations into strings that can later be evaluated at runtime via typing.get_type_hints see PEP 563. This is problematic because TestSlide uses the following pattern to find the expected type:
In this scenario, expected_type is a string when the expected type is Type (see _validate_argument_type() which only works if expected_type is a Type).
from __future__ import annotations
turns type annotations into strings that can later be evaluated at runtime viatyping.get_type_hints
see PEP 563. This is problematic because TestSlide uses the following pattern to find the expected type:In this scenario, expected_type is a
string
when the expected type isType
(see_validate_argument_type()
which only works if expected_type is aType
).It seems like a potential solution is:
Will continue testing (I am on python 3.8.6).
The text was updated successfully, but these errors were encountered: