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

Commit ffd8dba

Browse files
David Robertsonbabolivier
authored andcommitted
Avoid type annotation problems in prom-client (#11834)
1 parent c360840 commit ffd8dba

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

changelog.d/11834.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Workaround a type annotation problem in `prometheus_client` 0.13.0.

synapse/python_dependencies.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@
7575
"msgpack>=0.5.2",
7676
"phonenumbers>=8.2.0",
7777
# we use GaugeHistogramMetric, which was added in prom-client 0.4.0.
78-
"prometheus_client>=0.4.0",
78+
# 0.13.0 has an incorrect type annotation, see #11832.
79+
"prometheus_client>=0.4.0,<0.13.0",
7980
# we use `order`, which arrived in attrs 19.2.0.
8081
# Note: 21.1.0 broke `/sync`, see #9936
8182
"attrs>=19.2.0,!=21.1.0",

0 commit comments

Comments
 (0)