[py] Fix type annotations, make docstrings consistent, centralize dependencies #16821
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.
User description
🔗 Related Issues
#15697
💥 What does this PR do?
This is another cleanup PR:
log_pathattribute inwebkitgtk.Serviceclasspyproject.tomlto keep them in a central locationmypytox environment totypecheck(more generic name because we might replace mypy)🔄 Types of changes
PR Type
Enhancement, Bug fix
Description
Fix type annotations across service classes and remove unused imports
Centralize linting/typecheck/validation dependencies in
pyproject.tomlRename
mypytox environment totypecheckfor better generalityRemove deprecated
log_pathattribute fromwebkitgtk.ServiceStandardize docstrings across all service classes for consistency
Replace
ByTypewithstrtype hints in element finding methodsDiagram Walkthrough
File Walkthrough
8 files
Convert service_args to list typeRemove IOBase import and fix type annotationsReplace UNDEFINED type with SentinelRemove cast calls and fix log_output type hintsRemove ByType import and use str typeRemove ByType import and use str typeRemove ByType import and use str typeUpdate type hints and standardize docstring3 files
Standardize docstring format and parametersMove docstring from method to class levelStandardize docstring format and parameters1 files
Remove deprecated log_path and fix types2 files
Rename mypy environment to typecheckUse dependency_groups and rename mypy environment3 files
Add dependency groups for lint/typecheck/validateAdd tox and related dependenciesUpdate locked versions for new dependencies