This repository was 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
Type annotations in synapse.databases.main.devices
#13025
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
3aa4fd2
Make DeviceWorkerStore inherit from EndToEndKeyWorkerStore
fecad1c
`key_values` should be a Collection, not an Iterable
cd24240
correct `get_cached_device_list_changes`
d4acc84
Widen the type of user_ids_to_check
c195d07
Explicit annotations mypy couldn't deduce
ff49f67
Suppress a late-binding problem
ad0f4db
Workaround invariance of Dict
09ad3c4
Annotate a transaction's signature
e458d79
annotate an LRU cache
a86da20
Correct type of `context`
d204223
Type-ignore the weird stuff
0c8f7ad
devices is typed
62d692c
Changelog
a1bf0c2
import Literal from typing_extensions
81cf5d0
Batch of suggestions from Patrick
33e6ecc
List comprehension is neater here
a3257bb
Ugh, missed a line
ac6670c
Fix typo
1569b14
Revert "Correct type of `context`"
134d3da
Fix the context complaint differently
8395995
Revert "Fix the context complaint differently"
60e2ce0
Allow context=None in _add_device_outbound_poke_to_stream_txn
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 hidden or 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 `synapse.storage.databases.main.devices`. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.