I’d like to suggest removing the dt argument from ZoneInfo.tzname. Maybe I’m missing something, but given that the object itself is already a timezone information I don’t think that a datetime object is necessary for retrieving the tzname.
from datetime import datetime
from zoneinfo import ZoneInfo
>>> LOS_ANGELES = ZoneInfo("America/Los_Angeles")
>>> # Current implementation
>>> LOS_ANGELES.tzinfo(datetime.now())
'PDT'
>>> # Suggestion
>>> LOS_ANGELES.tzinfo()
'PDT'
Also, there’s a couple of other methods that I don’t think needs to receive datetime and maybe are candidates for removing as well:
I see, I don’t have experience with daylight savings, it makes sense.
But also, many time zones don’t have difference between Standard Time and Daylight Saving Time. In such cases, It feels very odd to create a datetime object just for getting the tzname.