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
More types for synapse.util, part 1 #10888
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
8cffbb5
Make synapse.util.versionstring pass `no-untyped-def`
f3ad101
Make synapse.utils.daemonize pass `no-untyped-def`
0a70837
Additional typing in synapse.util.metrics
9de84e6
Make synapse.util.caches.ttlcache pass `no-untyped-defs`
19bdaec
Make patch_inline_callbacks pass `no-untyped-defs`
53dae76
Make `stream_change_cache` pass `no-untyped-defs`
8d1da44
Make `cached_call` pass `no-untyped-def`
9f9073f
Make `lrucache` pass `no-untyped-def`
894be5f
Make response_cache pass `no-untyped-def`
0f21b3d
Make deferred_cache pass `no-untyped-def`
79c2ec7
changelog
c3b6eff
Corrections to type annotations (thanks Sean)
5c740ef
Remove unused `enumerate_leaves`
fe9d045
Revert `measure_func` changes
f0802b3
I think I missed some linting
ee5e676
Let's not annotate DeferredCache.invalidate
9ec04a4
Restore exception raising in versionstring.py
1f7a31d
Merge branch 'develop' into dmr/more-types-for-synapse.util
96b8481
Protocol is in typing_extensions until 3.8
723c431
Workaround attrs + slots + generic problem
cf923f6
Use string literals `"Deferred[T]"` in annotations
59b524b
Workaround didn't work, sod it
2e82869
Merge branch 'develop' into dmr/more-types-for-synapse.util
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 @@ | ||
Improve type hinting in `synapse.util`. |
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.
CI is unhappy here.
Looks like python-attrs/attrs#313