mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-05-03 04:04:49 -04:00
Use inline type hints in various other places (in synapse/
) (#10380)
This commit is contained in:
parent
c7603af1d0
commit
bf72d10dbf
79 changed files with 329 additions and 336 deletions
|
@ -118,7 +118,7 @@ class RedirectException(CodeMessageException):
|
|||
super().__init__(code=http_code, msg=msg)
|
||||
self.location = location
|
||||
|
||||
self.cookies = [] # type: List[bytes]
|
||||
self.cookies: List[bytes] = []
|
||||
|
||||
|
||||
class SynapseError(CodeMessageException):
|
||||
|
@ -160,7 +160,7 @@ class ProxiedRequestError(SynapseError):
|
|||
):
|
||||
super().__init__(code, msg, errcode)
|
||||
if additional_fields is None:
|
||||
self._additional_fields = {} # type: Dict
|
||||
self._additional_fields: Dict = {}
|
||||
else:
|
||||
self._additional_fields = dict(additional_fields)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue