Linting rule that warns you against unconditional return statements in for loops /u/scanguy25 Python Education

Does anyone know a package that has that rule? I tried to search and ask some AIs about it. I got nothing useful.

I found a bug in our production code caused by me just being stupid and putting a return statement in a for loop without conditions because i needed the value for unit tests.

submitted by /u/scanguy25
[link] [comments]

​r/learnpython Does anyone know a package that has that rule? I tried to search and ask some AIs about it. I got nothing useful. I found a bug in our production code caused by me just being stupid and putting a return statement in a for loop without conditions because i needed the value for unit tests. submitted by /u/scanguy25 [link] [comments] 

Does anyone know a package that has that rule? I tried to search and ask some AIs about it. I got nothing useful.

I found a bug in our production code caused by me just being stupid and putting a return statement in a for loop without conditions because i needed the value for unit tests.

submitted by /u/scanguy25
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *