Parcourir la source

Add type annotations to porcelain.py functions

Add Union[str, os.PathLike, BaseRepo] type annotations to 74 functions
in porcelain.py to improve type inference. This helps tools like
dissolve perform better type introspection when migrating deprecated
API calls.

While most functions now have proper type annotations, there are still
3 specific calls that fail type introspection in porcelain.py itself,
likely due to tool-specific issues with the file.
Jelmer Vernooij il y a 1 semaine
Parent
commit
abf09dd485
1 fichiers modifiés avec 215 ajouts et 114 suppressions
  1. 215 114
      dulwich/porcelain.py

Fichier diff supprimé car celui-ci est trop grand
+ 215 - 114
dulwich/porcelain.py


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff