summary refs log tree commit diff
path: root/synapse/storage/database.py
diff options
context:
space:
mode:
authorSean Quah <seanq@matrix.org>2022-12-13 13:45:55 +0000
committerSean Quah <seanq@matrix.org>2022-12-13 13:45:55 +0000
commit9d40fc961b734ad9fedfce595d0da32cde7ba6ef (patch)
tree4e9c3bf1aefe963359bb266af0dfe5d3ff64759c /synapse/storage/database.py
parentMerge branch 'develop' into matrix-org-hotfixes (diff)
parentTidy up CHANGES.md (diff)
downloadsynapse-9d40fc961b734ad9fedfce595d0da32cde7ba6ef.tar.xz
Merge branch 'release-v1.74' into matrix-org-hotfixes
Diffstat (limited to 'synapse/storage/database.py')
-rw-r--r--synapse/storage/database.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/database.py b/synapse/storage/database.py

index 55bcb90001..0b29e67b94 100644 --- a/synapse/storage/database.py +++ b/synapse/storage/database.py
@@ -667,7 +667,8 @@ class DatabasePool: ) # also check variables referenced in func's closure if inspect.isfunction(func): - f = cast(types.FunctionType, func) + # Keep the cast for now---it helps PyCharm to understand what `func` is. + f = cast(types.FunctionType, func) # type: ignore[redundant-cast] if f.__closure__: for i, cell in enumerate(f.__closure__): if inspect.isgenerator(cell.cell_contents):