Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type annotations #49

Merged
merged 13 commits into from
Feb 8, 2025
Merged

Add type annotations #49

merged 13 commits into from
Feb 8, 2025

Conversation

getzze
Copy link
Contributor

@getzze getzze commented Sep 25, 2024

Also lint and format with ruff (using subliminal settings in pyproject.toml).

I corrected (only!) one bug that appeared when adding types:

return self.from_opensubtitles[opensubtitles]

changed to

        return (*self.from_opensubtitles[opensubtitles], None)

So the return type is coherent.

Tests are passing but it would be better to test with another package (like subliminal) if it doesn't introduce bugs/differences.

@getzze getzze mentioned this pull request Sep 25, 2024
Copy link
Owner

@Diaoul Diaoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome 🎉

@getzze
Copy link
Contributor Author

getzze commented Oct 22, 2024

Hi! Anything else to do to merge this?

@getzze
Copy link
Contributor Author

getzze commented Feb 7, 2025

Hi @Diaoul 👋 , can this be merged already?

@Diaoul
Copy link
Owner

Diaoul commented Feb 7, 2025

I'm not sure why tests are not passing on the CI 🤔

@getzze
Copy link
Contributor Author

getzze commented Feb 7, 2025

Don't they pass after the last commit of the PR fe98cf4 ?

@Diaoul Diaoul merged commit 7584c2a into Diaoul:main Feb 8, 2025
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