Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Add additional type hints to HTTP client. (#8812)
Browse files Browse the repository at this point in the history
This also removes some duplicated code between the simple
HTTP client and matrix federation client.
  • Loading branch information
clokep authored Nov 25, 2020
1 parent 4fd222a commit 968939b
Show file tree
Hide file tree
Showing 5 changed files with 142 additions and 149 deletions.
2 changes: 1 addition & 1 deletion changelog.d/8806.misc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Add type hints to matrix federation client and agent.
Add type hints to HTTP abstractions.
1 change: 1 addition & 0 deletions changelog.d/8812.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add type hints to HTTP abstractions.
3 changes: 2 additions & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ files =
synapse/handlers/saml_handler.py,
synapse/handlers/sync.py,
synapse/handlers/ui_auth,
synapse/http/client.py,
synapse/http/federation/matrix_federation_agent.py,
synapse/http/federation/well_known_resolver.py,
synapse/http/matrixfederationclient.py,
Expand Down Expand Up @@ -109,7 +110,7 @@ ignore_missing_imports = True
[mypy-opentracing]
ignore_missing_imports = True

[mypy-OpenSSL]
[mypy-OpenSSL.*]
ignore_missing_imports = True

[mypy-netaddr]
Expand Down
Loading

0 comments on commit 968939b

Please sign in to comment.