Skip to content

Comments

Fix incorrect return type annotation for Locale.format_day#3580

Open
bysiber wants to merge 1 commit intotornadoweb:masterfrom
bysiber:fix/locale-format-day-return-type
Open

Fix incorrect return type annotation for Locale.format_day#3580
bysiber wants to merge 1 commit intotornadoweb:masterfrom
bysiber:fix/locale-format-day-return-type

Conversation

@bysiber
Copy link

@bysiber bysiber commented Feb 20, 2026

Locale.format_day is annotated as returning bool, but it actually returns a formatted string (e.g. "Monday, January 22").

This incorrect annotation causes type checkers to flag valid usage as errors and can mislead IDE autocompletion.

format_day returns a formatted string, not a bool.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant