This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add types to synapse.util. #10601
Merged
Merged
Add types to synapse.util. #10601
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
ff8f94d
fairly mechanical changes
reivilibre 6deee28
stranger changes (REVIEW)
reivilibre 3c2b4dd
Newsfile & mypy.ini
reivilibre 1d0b435
Put the switch back in to the 'more magic' position
reivilibre 22df193
Fix up some more types
reivilibre e36db3f
Update annotations in util
reivilibre db57064
Fix fallout (related annotations and assertions around codebase)
reivilibre cd15b4b
Merge remote-tracking branch 'origin/develop' into rei/types1
reivilibre 348f9ff
antilint
reivilibre d081c83
add type parameters for Deferreds
reivilibre 76c3b6b
Fix circular import of HomeServer
reivilibre 30ffee4
Quote deferreds in method signatures
reivilibre 10bd84f
Annotate more types
reivilibre 0c26b7f
Use attrs class and fix ignored fields [WANTS REVIEW]
reivilibre 715bfdc
Ignore import issues [WANTS REVIEW]
reivilibre 1e4632f
Annotate more types
reivilibre 05cc10c
Annotate more types
reivilibre 1c6704c
Annotate types and ignore Twisted issues [WANTS REVIEW]
reivilibre c384373
Add IReactorThreads as parent of ISynapseReactor
reivilibre 884a8b6
Annotate more types
reivilibre a22f4c0
Add type annotation fixes to fix CI
reivilibre 029bf34
Merge remote-tracking branch 'origin/develop' into rei/types1
reivilibre 9444ca1
Resolve type issue that arose from merge
reivilibre a0aef0b
Back out of generics due to python-attrs/attrs#313
reivilibre 289df40
Quote return types with Deferreds
reivilibre 8e719ed
Fix use of None as default
reivilibre 34e327d
Use a cast to work around Mocks not working with isinstance
reivilibre cd9a68d
Fix up parameters which were previously silently ignored
reivilibre b4cded1
Apply suggestions
reivilibre 6f7fac0
Use `cast` to IReactorTime [WANTS REVIEW]
reivilibre d4afbca
Add types and casts to `__exit__` [REVIEW]
reivilibre f5cee54
Fix adherence to Jinja2's interface [REVIEW]
reivilibre 12cfb9a
Annotate `WheelTimer`, notably `bucket_size`
reivilibre e69a3d6
Update Newsfile
reivilibre 9f301ae
Note that code was lifted from CPython
reivilibre e6618d7
Add more type annotations
reivilibre b1b4f1b
Enable stricter checking on applicable modules
reivilibre ea4f7e0
Merge remote-tracking branch 'origin/develop' into rei/types1
reivilibre 8871674
Correct types used in `__exit__`
reivilibre 20d63a0
Fix up manhole types after merge [REVIEW, SEE DESC]
reivilibre 19a602e
Avoid using evil typecasts
reivilibre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add type annotations to the synapse.util package. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a functional change too? I think its fine though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, forgot to point it out