This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change
1
+ Improve type hints.
Original file line number Diff line number Diff line change @@ -36,9 +36,6 @@ exclude = (?x)
36
36
[mypy-synapse.federation.transport.client]
37
37
disallow_untyped_defs = False
38
38
39
- [mypy-synapse.http.client]
40
- disallow_untyped_defs = False
41
-
42
39
[mypy-synapse.http.matrixfederationclient]
43
40
disallow_untyped_defs = False
44
41
Original file line number Diff line number Diff line change 44
44
IAddress ,
45
45
IDelayedCall ,
46
46
IHostResolution ,
47
+ IOpenSSLContextFactory ,
47
48
IReactorCore ,
48
49
IReactorPluggableNameResolver ,
49
50
IReactorTime ,
@@ -958,8 +959,8 @@ def __init__(self) -> None:
958
959
self ._context = SSL .Context (SSL .SSLv23_METHOD )
959
960
self ._context .set_verify (VERIFY_NONE , lambda * _ : False )
960
961
961
- def getContext (self , hostname = None , port = None ) :
962
+ def getContext (self ) -> SSL . Context :
962
963
return self ._context
963
964
964
- def creatorForNetloc (self , hostname : bytes , port : int ):
965
+ def creatorForNetloc (self , hostname : bytes , port : int ) -> IOpenSSLContextFactory :
965
966
return self
You can’t perform that action at this time.
0 commit comments