Comment
Comment by hildenae
It is a good explanation of what is happening. However, I think that many of not most Python linters will warn you about this. It is perfectly valid, and something you might actually want, so it should not throw an error.