-
- Downloads
Properly typecheck types.http (#14988)
* Tweak http types in Synapse AFACIS these are correct, and they make mypy happier on tests.http. * Type hints for test_proxyagent * type hints for test_srv_resolver * test_matrix_federation_agent * tests.http.server._base * tests.http.__init__ * tests.http.test_additional_resource * tests.http.test_client * tests.http.test_endpoint * tests.http.test_matrixfederationclient * tests.http.test_servlet * tests.http.test_simple_client * tests.http.test_site * One fixup in tests.server * Untyped defs * Changelog * Fixup syntax for Python 3.7 * Fix olddeps syntax * Use a twisted IPv4 addr for dummy_address * Fix typo, thanks Sean Co-authored-by:Sean Quah <8349537+squahtx@users.noreply.github.com> * Remove redundant `Optional` --------- Co-authored-by:
Sean Quah <8349537+squahtx@users.noreply.github.com>
Showing
- changelog.d/14988.misc 1 addition, 0 deletionschangelog.d/14988.misc
- mypy.ini 3 additions, 3 deletionsmypy.ini
- synapse/http/client.py 4 additions, 1 deletionsynapse/http/client.py
- synapse/http/proxyagent.py 1 addition, 2 deletionssynapse/http/proxyagent.py
- tests/http/__init__.py 13 additions, 6 deletionstests/http/__init__.py
- tests/http/federation/test_matrix_federation_agent.py 87 additions, 55 deletionstests/http/federation/test_matrix_federation_agent.py
- tests/http/federation/test_srv_resolver.py 36 additions, 24 deletionstests/http/federation/test_srv_resolver.py
- tests/http/server/_base.py 1 addition, 1 deletiontests/http/server/_base.py
- tests/http/test_additional_resource.py 12 additions, 6 deletionstests/http/test_additional_resource.py
- tests/http/test_client.py 23 additions, 14 deletionstests/http/test_client.py
- tests/http/test_endpoint.py 2 additions, 2 deletionstests/http/test_endpoint.py
- tests/http/test_matrixfederationclient.py 31 additions, 22 deletionstests/http/test_matrixfederationclient.py
- tests/http/test_proxyagent.py 63 additions, 40 deletionstests/http/test_proxyagent.py
- tests/http/test_servlet.py 4 additions, 4 deletionstests/http/test_servlet.py
- tests/http/test_simple_client.py 8 additions, 6 deletionstests/http/test_simple_client.py
- tests/http/test_site.py 5 additions, 3 deletionstests/http/test_site.py
- tests/server.py 4 additions, 2 deletionstests/server.py
Loading
Please register or sign in to comment