You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: use Self return type for PyProjectData.for_testing
Using Self as the return type for classmethod PyProjectData.for_testing allows
subclasses (like setuptools_scm's extended PyProjectData) to have the correct
return type without needing overrides or type ignore comments.
Changes:
- Added Self import to vcs_versioning._pyproject_reading
- Changed return type from PyProjectData to Self for for_testing and empty methods
- Removed now-unnecessary type: ignore comments in setuptools.py and test_cli.py
This fixes all remaining mypy errors related to PyProjectData type compatibility.
0 commit comments