Skip to content

typing: fix incorrect typing for locale#833

Merged
archisman-panigrahi merged 1 commit intoslgobinath:masterfrom
deltragon:typing-locale-fix
Jan 19, 2026
Merged

typing: fix incorrect typing for locale#833
archisman-panigrahi merged 1 commit intoslgobinath:masterfrom
deltragon:typing-locale-fix

Conversation

@deltragon
Copy link
Copy Markdown
Collaborator

Description

This was incorrectly typed as str before, when it was actually a gettext.GNUTranslations instance (with a NullTranslations base class).
This makes the tests just slightly more annoying, as now we have to mock that class too - but it was just luck that it worked before.

@archisman-panigrahi
Copy link
Copy Markdown
Collaborator

Is this ready?

@deltragon
Copy link
Copy Markdown
Collaborator Author

Is this ready?

Yes, it is.

@archisman-panigrahi archisman-panigrahi merged commit a9c5321 into slgobinath:master Jan 19, 2026
6 checks passed
@deltragon deltragon deleted the typing-locale-fix branch January 19, 2026 15:45
@deltragon
Copy link
Copy Markdown
Collaborator Author

Thanks!

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.

2 participants