mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-26 19:47:05 +03:00
Add comment explaining cast
This commit is contained in:
parent
8a3dac3c19
commit
c066928915
1 changed files with 2 additions and 0 deletions
|
@ -163,6 +163,8 @@ def cache_in_self(builder: T) -> T:
|
||||||
|
|
||||||
return dep
|
return dep
|
||||||
|
|
||||||
|
# We cast here as we need to tell mypy that `_get` has the same signature as
|
||||||
|
# `builder`.
|
||||||
return cast(T, _get)
|
return cast(T, _get)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue