-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Address all current pylint and mypy warnings #40103
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR addresses existing pylint and mypy warnings and applies Black reformatting across the codebase. Key changes include updates to typing annotations and overload declarations, modifications to docstrings for consistency, and minor refactoring of type conversions and parameter hints.
Reviewed Changes
Copilot reviewed 39 out of 39 changed files in this pull request and generated no comments.
File | Description |
---|---|
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluators/* | Updated overload declarations with "# type: ignore[override]" and adjusted parameter annotations and docstrings. |
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_evaluate/_evaluate.py | Revised type hints (e.g. switching to ProxyClient) and improved numeric conversions with cast. |
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/_common/math.py | Changed type annotations from List[float] to Sequence[float] for enhanced flexibility. |
Others | Similar consistency changes to overloads, docstrings, and type hints are applied across evaluators. |
API change check APIView has identified API level changes in this PR and created following API reviews. |
This addresses all pylint, and mypy warnings. This also runs tox -e black reformatting on the code base