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

Commit

Permalink
Avoid type annotation problems in prom-client (#11834)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson authored and babolivier committed Jan 26, 2022
1 parent c360840 commit ffd8dba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/11834.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Workaround a type annotation problem in `prometheus_client` 0.13.0.
3 changes: 2 additions & 1 deletion synapse/python_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
"msgpack>=0.5.2",
"phonenumbers>=8.2.0",
# we use GaugeHistogramMetric, which was added in prom-client 0.4.0.
"prometheus_client>=0.4.0",
# 0.13.0 has an incorrect type annotation, see #11832.
"prometheus_client>=0.4.0,<0.13.0",
# we use `order`, which arrived in attrs 19.2.0.
# Note: 21.1.0 broke `/sync`, see #9936
"attrs>=19.2.0,!=21.1.0",
Expand Down

0 comments on commit ffd8dba

Please sign in to comment.