Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
synapse.metrics: silence mypy errors in PyPy-specific code
Browse files Browse the repository at this point in the history
  • Loading branch information
intelfx committed May 20, 2020
1 parent 02daa62 commit 055878e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/metrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,9 +355,9 @@ def collect(self):
# @stats is a pretty-printer object with __str__() returning a nice table,
# plus some fields that contain data from that table.
# unfortunately, fields are pretty-printed themselves (i. e. '4.5MB').
stats = gc.get_stats(memory_pressure=False)
stats = gc.get_stats(memory_pressure=False) # type: ignore
# @s contains same fields as @stats, but as actual integers.
s = stats._s
s = stats._s # type: ignore

# also note that field naming is completely braindead
# and only vaguely correlates with the pretty-printed table.
Expand Down

0 comments on commit 055878e

Please sign in to comment.