linuxmint / mintupdate

The Linux Mint Update Manager
309 stars 152 forks source link

add type hints to get_days_since functions #798

Closed hduelme closed 1 year ago

hduelme commented 1 year ago

I added type hints to the functions get_days_since_date and get_days_since_timestamp. This makes it clearer what the functions accept and return.

mtwebster commented 1 year ago

Does what's mentioned here apply to this also? (pre-3.10 compatibility)

hduelme commented 1 year ago

In this case it doesn't apply. The hints are already supported. The problem in the other merge request was

Changed in version 3.10: Optional can now be written as X | None. See union type expressions.