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
Refactor HomeserverConfig so it can be typechecked #6137
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
25229c5
fix regression, clean up types, make the whitelist actually handle ID…
hawkowl 5b26291
tests
hawkowl eb1088a
changelog
hawkowl 6791060
don't idna decode if we're simply looking for an ip
hawkowl ad13b07
style
hawkowl baa427b
fix
hawkowl c5a177a
fix
hawkowl 9eb9a70
tests
hawkowl bf2cab3
tests
hawkowl 7a9f8cb
refactor config
hawkowl be9a5a6
Merge remote-tracking branch 'origin/develop' into hawkowl/config-cle…
hawkowl 381763f
fixes
hawkowl baa4798
follow imports
hawkowl 42163b7
fix up final errors
hawkowl 933693b
note
hawkowl cf84f9f
Delete 5996.bugfix
hawkowl 021de0b
typing extensions
hawkowl d55775e
fix up
hawkowl 367d22c
Merge branch 'hawkowl/config-cleanup' of ssh://github.com/matrix-org/…
hawkowl 0d12ac7
don't getattr these functions
hawkowl f25ba70
fix default root config
hawkowl f6a15e8
Merge remote-tracking branch 'origin/develop' into hawkowl/config-cle…
hawkowl 2bb1cfb
fix
hawkowl 28d8b3c
Merge remote-tracking branch 'origin/develop' into hawkowl/config-cle…
hawkowl c399119
make the diff cleaner
hawkowl d656db8
make the diff cleaner
hawkowl 7d6635d
make the diff cleaner
hawkowl 4b077dd
cleanups and docs
hawkowl 4d7d846
black
hawkowl c0a4bcd
Update synapse/config/_base.py
hawkowl 6a78d36
Merge remote-tracking branch 'origin/develop' into hawkowl/config-cle…
hawkowl dcd149e
cleanups
hawkowl b18b707
cleanups
hawkowl 2f15084
cleanups
hawkowl 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 @@ | ||
Refactor configuration loading to allow better typechecking. |
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.
why are we adding this sort of thing?
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.
because we don't have type stubs for these modules, so therefore we don't want to typecheck them. We don't want to ignore missing imports completely, just on dependencies without type hints.
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.
ok, but it just doesn't seem related to the subject of the PR and the text of the changelog.
I guess it's necesary because of https://github.com/matrix-org/synapse/pull/6137/files#diff-b91f3d5bd63fcd17221b267e851608e8R169?