瀏覽代碼

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 5 月之前
父節點
當前提交
e02c4af27f
共有 1 個文件被更改,包括 215 次插入114 次删除
  1. 215 114
      dulwich/porcelain.py

文件差異過大導致無法顯示
+ 215 - 114
dulwich/porcelain.py


部分文件因文件數量過多而無法顯示