Is there any way linter/type checker for that can find expressions that never will evaluate to anything other than False based on the type information? E.g. checking if a variable of the type `int` exists within a list of the type `list[str]`? I do use but it doesn't seem to catch this.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.nu/users/newbyte/statuses/116070033242666449 on your instance and quote it. (Note that quoting is not supported in Mastodon.)