Modernized function typing in reviewboard/accounts/models.py

Review Request #14106 — Created Aug. 16, 2024 and submitted — Latest diff uploaded

Information

Review Board
master

Reviewers

Modernized function typing in reviewboard/accounts/models.py

No new tests were added, however the entire reviewboard test suite
was run and all previously passing tests still pass.

Changes between revision 2 and 3

orig
1
2
3
4
5

Commits

Summary ID Author
Modernized function typing in reviewboard/accounts/models.py
Added typing to all the function parameters and return types in every function to bring the file in line with more modern typing standards. Certain type imports were put under a `TYPE_CHECKING`. No new tests were added, however the entire `reviewboard` test suite was run and all previously passing tests still pass.
0149e77fc2277cd24c0c5745e3b32f6c6134e5cc Daniel
Modernized function typing in reviewboard/accounts/models.py
Added typing to all the function parameters and return types in every function to bring the file in line with more modern typing standards. Certain type imports were put under a `TYPE_CHECKING`. No new tests were added, however the entire `reviewboard` test suite was run and all previously passing tests still pass.
d72bc111c58e20f2fa7a9a78eac84e1d0f19e14a Daniel

Files

reviewboard/static/rb/js/resources/collections/tests/repositoryBranchesCollectionTests.es6.js Was reviewboard/static/rb/js/common/resources/collections/tests/repositoryBranchesCollectionTests.ts
reviewboard/static/rb/js/resources/collections/tests/repositoryCommitsCollectionTests.es6.js Was reviewboard/static/rb/js/common/resources/collections/tests/repositoryCommitsCollectionTests.ts
reviewboard/static/rb/js/resources/models/baseCommentReplyModel.es6.js
reviewboard/static/rb/js/resources/models/diffCommentModel.es6.js
reviewboard/static/rb/js/resources/models/diffCommentReplyModel.es6.js
reviewboard/static/rb/js/resources/models/diffModel.es6.js
reviewboard/static/rb/js/resources/models/draftReviewRequestModel.es6.js
reviewboard/static/rb/js/resources/models/fileAttachmentCommentModel.es6.js
reviewboard/static/rb/js/resources/models/fileAttachmentCommentReplyModel.es6.js
reviewboard/static/rb/js/resources/models/fileDiffModel.es6.js
reviewboard/static/rb/js/resources/models/generalCommentModel.es6.js
reviewboard/static/rb/js/resources/models/generalCommentReplyModel.es6.js
reviewboard/static/rb/js/resources/models/repositoryBranchModel.es6.js
reviewboard/static/rb/js/resources/models/repositoryCommitModel.es6.js
reviewboard/static/rb/js/resources/models/screenshotCommentModel.es6.js
reviewboard/static/rb/js/resources/models/screenshotCommentReplyModel.es6.js
reviewboard/static/rb/js/resources/models/screenshotModel.es6.js
reviewboard/static/rb/js/resources/models/userFileAttachmentModel.es6.js
reviewboard/static/rb/js/resources/models/validateDiffModel.es6.js
reviewboard/static/rb/js/resources/models/tests/baseCommentReplyModelTests.es6.js Was reviewboard/static/rb/js/common/resources/models/tests/baseCommentReplyModelTests.ts
This diff has been split across 6 pages: < 1 2 3 4 5 6 >
reviewboard/static/rb/js/common/resources/collections/tests/repositoryBranchesCollectionTests.ts
reviewboard/static/rb/js/common/resources/collections/tests/repositoryCommitsCollectionTests.ts
reviewboard/static/rb/js/resources/models/baseCommentReplyModel.es6.js
reviewboard/static/rb/js/resources/models/diffCommentModel.es6.js
reviewboard/static/rb/js/resources/models/diffCommentReplyModel.es6.js
reviewboard/static/rb/js/resources/models/diffModel.es6.js
reviewboard/static/rb/js/resources/models/draftReviewRequestModel.es6.js
reviewboard/static/rb/js/resources/models/fileAttachmentCommentModel.es6.js
reviewboard/static/rb/js/resources/models/fileAttachmentCommentReplyModel.es6.js
reviewboard/static/rb/js/resources/models/fileDiffModel.es6.js
reviewboard/static/rb/js/resources/models/generalCommentModel.es6.js
reviewboard/static/rb/js/resources/models/generalCommentReplyModel.es6.js
reviewboard/static/rb/js/resources/models/repositoryBranchModel.es6.js
reviewboard/static/rb/js/resources/models/repositoryCommitModel.es6.js
reviewboard/static/rb/js/resources/models/screenshotCommentModel.es6.js
reviewboard/static/rb/js/resources/models/screenshotCommentReplyModel.es6.js
reviewboard/static/rb/js/resources/models/screenshotModel.es6.js
reviewboard/static/rb/js/resources/models/userFileAttachmentModel.es6.js
reviewboard/static/rb/js/resources/models/validateDiffModel.es6.js
reviewboard/static/rb/js/common/resources/models/tests/baseCommentReplyModelTests.ts
This diff has been split across 6 pages: < 1 2 3 4 5 6 >
Loading...