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

Commit c581556

Browse files
author
David Robertson
authored
Avoid type annotation problems in prom-client (#11834)
1 parent 95b3f95 commit c581556

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
@@ -76,7 +76,8 @@
7676
"msgpack>=0.5.2",
7777
"phonenumbers>=8.2.0",
7878
# we use GaugeHistogramMetric, which was added in prom-client 0.4.0.
79-
"prometheus_client>=0.4.0",
79+
# 0.13.0 has an incorrect type annotation, see #11832.
80+
"prometheus_client>=0.4.0,<0.13.0",
8081
# we use `order`, which arrived in attrs 19.2.0.
8182
# Note: 21.1.0 broke `/sync`, see #9936
8283
"attrs>=19.2.0,!=21.1.0",

0 commit comments

Comments
 (0)