0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-06-02 10:48:56 +02:00

Add comment explaining cast

This commit is contained in:
Erik Johnston 2020-08-11 22:01:12 +01:00
parent 8a3dac3c19
commit c066928915

View file

@ -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)