On Mon, 10 Jan 2022 at 11:43, Batuhan Taskaya <[email protected]> wrote: > > > Does someone know if linters like pylint or pylakes current warn on > > "assert(test, msg)" statements? > > I believe so, both the python itself (through SyntaxWarnings) and > other linters warn about this.
❯ py Python 3.10.1 (tags/v3.10.1:2cd268a, Dec 6 2021, 19:10:37) [MSC v.1929 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> assert (1==0, "Hello") <stdin>:1: SyntaxWarning: assertion is always true, perhaps remove parentheses? Paul _______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/SNTCRCIJCMLK7AYCQIIZ2XTRN5OX6J7M/ Code of Conduct: http://python.org/psf/codeofconduct/
