Add comment explaining cast

code_spécifique_watcha
Erik Johnston 4 years ago
parent 8a3dac3c19
commit c066928915
  1. 2
      synapse/server.py

@ -163,6 +163,8 @@ def cache_in_self(builder: T) -> T:
return dep
# We cast here as we need to tell mypy that `_get` has the same signature as
# `builder`.
return cast(T, _get)

Loading…
Cancel
Save