diff --git a/synapse/metrics/__init__.py b/synapse/metrics/__init__.py
index 3051b623d0..9ce83da4ba 100644
--- a/synapse/metrics/__init__.py
+++ b/synapse/metrics/__init__.py
@@ -427,16 +427,6 @@ build_info.labels(
" ".join([platform.system(), platform.release()]),
).set(1)
-# 3PID send info
-threepid_send_requests = Histogram(
- "synapse_threepid_send_requests_with_tries",
- documentation="Number of requests for a 3pid token by try count. Note if"
- " there is a request with try count of 4, then there would have been one"
- " each for 1, 2 and 3",
- buckets=(1, 2, 3, 4, 5, 10),
- labelnames=("type", "reason"),
-)
-
threadpool_total_threads = Gauge(
"synapse_threadpool_total_threads",
"Total number of threads currently in the threadpool",
diff --git a/synapse/metrics/background_process_metrics.py b/synapse/metrics/background_process_metrics.py
index 19c92b02a0..49d0ff9fc1 100644
--- a/synapse/metrics/background_process_metrics.py
+++ b/synapse/metrics/background_process_metrics.py
@@ -293,7 +293,7 @@ def wrap_as_background_process(
"""
def wrap_as_background_process_inner(
- func: Callable[P, Awaitable[Optional[R]]]
+ func: Callable[P, Awaitable[Optional[R]]],
) -> Callable[P, "defer.Deferred[Optional[R]]"]:
@wraps(func)
def wrap_as_background_process_inner_2(
diff --git a/synapse/metrics/jemalloc.py b/synapse/metrics/jemalloc.py
index bd25985686..321ff58083 100644
--- a/synapse/metrics/jemalloc.py
+++ b/synapse/metrics/jemalloc.py
@@ -23,11 +23,10 @@ import ctypes
import logging
import os
import re
-from typing import Iterable, Optional, overload
+from typing import Iterable, Literal, Optional, overload
import attr
from prometheus_client import REGISTRY, Metric
-from typing_extensions import Literal
from synapse.metrics import GaugeMetricFamily
from synapse.metrics._types import Collector
|