boolean-datetime / W1502#

Message emitted:

Using datetime.time in a boolean context.


Using datetime.time in a boolean context can hide subtle bugs when the time they represent matches midnight UTC. This behaviour was fixed in Python 3.5. See for reference.

Correct code:

# This is a placeholder for correct code for this message.

Additional details:

You can help us make the doc better by contributing !

Created by the stdlib checker.