Browse 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 1 tuần trước cách đây
mục cha
commit
abf09dd485
1 tập tin đã thay đổi với 215 bổ sung114 xóa
  1. 215 114
      dulwich/porcelain.py

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 215 - 114
dulwich/porcelain.py


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác