Add mypy type checking for Python 3.14 and fix deprecation warning#1470
Merged
tleonhardt merged 1 commit intomainfrom Jul 27, 2025
Merged
Add mypy type checking for Python 3.14 and fix deprecation warning#1470tleonhardt merged 1 commit intomainfrom
tleonhardt merged 1 commit intomainfrom
Conversation
…cs.open() due to deprecation in 3.14 The first release candidate for Python 3.14 was released on 2025-07-22 and I did some local testing. The first thing I realized is that mypy now works well with 3.14 and so we should add type checking on that platform to our GitLab Actions. The second thing I noticed is that when we ran tests with pytests, we were getting a bunch of warnings due to `codecs.open()` being deprecated. Since at least Python 3.6 there has been no need for that as `open()` does everything it can do plus more.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1470 +/- ##
==========================================
- Coverage 98.41% 98.41% -0.01%
==========================================
Files 21 21
Lines 5869 5868 -1
==========================================
- Hits 5776 5775 -1
Misses 93 93
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
theagilehacker
approved these changes
Jul 27, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
mypytype checking for Python 3.14 and useopen()instead ofcodecs.open()due to deprecation in 3.14.The first release candidate for Python 3.14 was released on 2025-07-22 and I did some local testing.
The first thing I realized is that
mypynow works well with 3.14 and so we should add type checking on that platform to our GitLab Actions.The second thing I noticed is that when we ran tests with pytests, we were getting a bunch of warnings due to codecs.open() being deprecated. Since at least Python 3.6 there has been no need for that as
open()does everything it can do plus more.