I follow the advice of @adamchainz:
For these reasons, I use this import idiom and recommend you do too:
import datetime as dtRather than any of:
import datetimefrom datetime import datetime # or time, timezoneThen in your code,
dt.datetime,dt.time, anddt.timezonewill be unambiguous.