-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typeguard does not check elements (except for the first element) in a list #452
Comments
Thank you for your quick response. I just upgraded from typeguard 2.13.1 to 4.*, and apparently, I missed this important information. Now it works perfectly. Thanks! |
If you can suggest a place in the documentation where you yourself would've found the relevant information before creating the issue, let me know and I can add it there. |
Regarding that "list length check", |
Things to check first
I have searched the existing issues and didn't find my bug already reported there
I have checked that my bug is still present in the latest release
Typeguard version
4.2.1
Python version
3.11.0rc1
What happened?
typeguard does not check elements of a list except for the first element. Please see my example here:
The first element is checked properly.
Output:
The second element was not checked.
Output:
Also not working for list with flexible length:
Output:
How can we reproduce the bug?
Run the following codes in the console:
The text was updated successfully, but these errors were encountered: