You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ruff should be able to find and replace integer values for the datetime.datetime or datetime.date constructor (and maybe others) with the corresponding constants.
weekday
There are also constants for weekdays. But I haven't thought where this could be useful (and easy to find/autofix).
The text was updated successfully, but these errors were encountered:
calendar
packagePython 3.12 added constants to the calendar package: https://docs.python.org/3.12/library/calendar.html#calendar.JANUARY
ruff
should be able to find and replace integer values for thedatetime.datetime
ordatetime.date
constructor (and maybe others) with the corresponding constants.weekday
There are also constants for weekdays. But I haven't thought where this could be useful (and easy to find/autofix).
The text was updated successfully, but these errors were encountered: