Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 359 Bytes

boolean-datetime.md

File metadata and controls

11 lines (6 loc) · 359 Bytes

Pattern: Datetime used in boolean context

Issue: -

Description

Using datetime.time in a boolean context can hide subtle bugs when the time they represent matches midnight UTC. This behavior was fixed in Python 3.5. This message can't be emitted when using Python >= 3.5.

Further Reading