Closed timwoocker closed 7 months ago
[X] I have searched the existing issues and didn't find my bug already reported there
[X] I have checked that my bug is still present in the latest release
4.1.5
3.10
Checking the type of a list will only check its first value when using generic typing.
typeguard.check_type([1, 2, "hi"], List[int]) does not throw an exception
typeguard.check_type([1, 2, "hi"], List[int])
Things to check first
[X] I have searched the existing issues and didn't find my bug already reported there
[X] I have checked that my bug is still present in the latest release
Typeguard version
4.1.5
Python version
3.10
What happened?
Checking the type of a list will only check its first value when using generic typing.
How can we reproduce the bug?
typeguard.check_type([1, 2, "hi"], List[int])
does not throw an exception