Fix some type hint errors reported by mypy in .pyi files#270
Merged
CEXT-Dan merged 8 commits intoCEXT-Dan:mainfrom Apr 14, 2025
Merged
Fix some type hint errors reported by mypy in .pyi files#270CEXT-Dan merged 8 commits intoCEXT-Dan:mainfrom
CEXT-Dan merged 8 commits intoCEXT-Dan:mainfrom
Conversation
… in .cpp files for T types that cannot be `None`
Owner
|
Wow, you've done a lot of work! Thank you! |
CEXT-Dan
added a commit
that referenced
this pull request
May 31, 2025
Fix some type hint errors reported by mypy in .pyi files
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.
Description
This pull request :
python-dotenvto the dev dependencies, as it is needed to launchrun_tests.batMethodology
From the root of the project:
pip install mypy types-pywin32 mypy pyrxSome errors reported by mypy on the .pyi files have been corrected on the Python side and the C++ side (hopefully).
For a description of which errors have been corrected, got to the commit section.
This pull request reduces the number of errors reported by mypy 1.15.0 from 296 on
main(9020c7e) to 228 (8fe8105).Tests before merging
On this branch:
Next steps
The type errors that are left in the .pyi files are related to overloading order, or incompatible definitions for magic methods (
__*****__).