mirror of https://github.com/watcha-fr/synapse
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tag:
Branch:
Tree:
d935b806a5
1.103.0-whithout-watcha
code_spécifique_watcha
dependabot/cargo/log-0.4.22
dependabot/cargo/pyo3-0.20.3
dependabot/cargo/regex-1.10.5
dependabot/cargo/serde-1.0.203
dependabot/cargo/serde_json-1.0.119
dependabot/github_actions/actions/download-artifact-4
dependabot/github_actions/actions/upload-artifact-4
dependabot/github_actions/dawidd6/action-download-artifact-3.1.4
dependabot/github_actions/dtolnay/rust-toolchain-1.90.0
dependabot/github_actions/peaceiris/actions-mdbook-2.0.0
dependabot/pip/black-24.4.2
dependabot/pip/pyopenssl-24.1.0
dependabot/pip/ruff-0.5.0
dependabot/pip/twine-5.1.1
dependabot/pip/types-pyopenssl-24.1.0.20240425
feature/create-public-share-link-for-partners
watcha-develop
watcha-lyon-poc
watcha-postgres
watcha-synapse-1.63
v1.103.0
watcha-20220615T155606-8744bec
watcha-20220725T103522-5872653
watcha-20221004T210552-cacf559
watcha-20230516T105835-c98c0fb
watcha-20240528T102955-d92e2cc
watcha-20240614T172257-24baa2e
watcha-20240614T175901-2a6e961
watcha-20240620T111818-dd05b05
watcha-20241016T151951-01924e1
watcha-20241018T114602-58c3d94
watcha-20241018T120039-526886c
watcha-20241018T142133-44f41d8
watcha-20241018T155526-6c49551
watcha-20241021T110133-142020a
watcha-20241021T112738-efc6ace
watcha-20241107T150249-3a569c8
watcha-build-20211216T025348-lyon-poc-95ba3a8
${ noResults }
David Robertson
ffc2ee521d
* Update mypy and mypy-zope * Remove unused ignores These used to suppress ``` synapse/storage/engines/__init__.py:28: error: "__new__" must return a class instance (got "NoReturn") [misc] ``` and ``` synapse/http/matrixfederationclient.py:1270: error: "BaseException" has no attribute "reasons" [attr-defined] ``` (note that we check `hasattr(e, "reasons")` above) * Avoid empty body warnings, sometimes by marking methods as abstract E.g. ``` tests/handlers/test_register.py:58: error: Missing return statement [empty-body] tests/handlers/test_register.py:108: error: Missing return statement [empty-body] ``` * Suppress false positive about `JaegerConfig` Complaint was ``` synapse/logging/opentracing.py:450: error: Function "Type[Config]" could always be true in boolean context [truthy-function] ``` * Fix not calling `is_state()` Oops! ``` tests/rest/client/test_third_party_rules.py:428: error: Function "Callable[[], bool]" could always be true in boolean context [truthy-function] ``` * Suppress false positives from ParamSpecs ```` synapse/logging/opentracing.py:971: error: Argument 2 to "_custom_sync_async_decorator" has incompatible type "Callable[[Arg(Callable[P, R], 'func'), **P], _GeneratorContextManager[None]]"; expected "Callable[[Callable[P, R], **P], _GeneratorContextManager[None]]" [arg-type] synapse/logging/opentracing.py:1017: error: Argument 2 to "_custom_sync_async_decorator" has incompatible type "Callable[[Arg(Callable[P, R], 'func'), **P], _GeneratorContextManager[None]]"; expected "Callable[[Callable[P, R], **P], _GeneratorContextManager[None]]" [arg-type] ```` * Drive-by improvement to `wrapping_logic` annotation * Workaround false "unreachable" positives See https://github.com/Shoobx/mypy-zope/issues/91 ``` tests/http/test_proxyagent.py:626: error: Statement is unreachable [unreachable] tests/http/test_proxyagent.py:762: error: Statement is unreachable [unreachable] tests/http/test_proxyagent.py:826: error: Statement is unreachable [unreachable] tests/http/test_proxyagent.py:838: error: Statement is unreachable [unreachable] tests/http/test_proxyagent.py:845: error: Statement is unreachable [unreachable] tests/http/federation/test_matrix_federation_agent.py:151: error: Statement is unreachable [unreachable] tests/http/federation/test_matrix_federation_agent.py:452: error: Statement is unreachable [unreachable] tests/logging/test_remote_handler.py:60: error: Statement is unreachable [unreachable] tests/logging/test_remote_handler.py:93: error: Statement is unreachable [unreachable] tests/logging/test_remote_handler.py:127: error: Statement is unreachable [unreachable] tests/logging/test_remote_handler.py:152: error: Statement is unreachable [unreachable] ``` * Changelog * Tweak DBAPI2 Protocol to be accepted by mypy 1.0 Some extra context in: - https://github.com/matrix-org/python-canonicaljson/pull/57 - https://github.com/python/mypy/issues/6002 - https://mypy.readthedocs.io/en/latest/common_issues.html#covariant-subtyping-of-mutable-protocol-members-is-rejected * Pull in updated canonicaljson lib so the protocol check just works * Improve comments in opentracing I tried to workaround the ignores but found it too much trouble. I think the corresponding issue is https://github.com/python/mypy/issues/12909. The mypy repo has a PR claiming to fix this (https://github.com/python/mypy/pull/14677) which might mean this gets resolved soon? * Better annotation for INTERACTIVE_AUTH_CHECKERS * Drive-by AUTH_TYPE annotation, to remove an ignore |
2 years ago | |
---|---|---|
.. | ||
__init__.py | Use mypy 1.0 (#15052) | 2 years ago |
config.py | Add helper to parse an enum from query args & use it. (#14956) | 2 years ago |
events.py | Faster joins: omit partial rooms from eager syncs until the resync completes (#14870) | 2 years ago |