Update the Subversion client for type safety.

Review Request #12637 — Created Sept. 24, 2022 and submitted — Latest diff uploaded

Information

RBTools
release-4.x

Reviewers

This goes through nearly all the Subversion client code, ensuring
function signatures, lists, and dictionaries all have types defined.

This has helped uncover many cases where we were assuming values were
not None or assuming values were the right type (such as a string
instead of an integer).

Logic has been rewritten in some cases to aid in type safety, such as
when building a diff and dealing with a mixture of lists and generators.

Unit tests pass.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Update the Subversion client for type safety.
This goes through nearly all the Subversion client code, ensuring function signatures, lists, and dictionaries all have types defined. This has helped uncover many cases where we were assuming values were not `None` or assuming values were the right type (such as a string instead of an integer). Logic has been rewritten in some cases to aid in type safety, such as when building a diff and dealing with a mixture of lists and generators.
04ce7a76a9dfb6b2df0f5e880b63ce589f21844c Christian Hammond
rbtools/clients/svn.py
rbtools/clients/tests/test_svn.py
Loading...