Skip to content

Commit ba315f0

Browse files
committed
fix types for extras
1 parent 60eb74c commit ba315f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lite_bootstrap/bootstrappers/faststream_bootstrapper.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ class FastStreamSentryInstrument(SentryInstrument):
110110
@dataclasses.dataclass(kw_only=True, frozen=True)
111111
class FastStreamPrometheusInstrument(PrometheusInstrument):
112112
bootstrap_config: FastStreamConfig
113-
collector_registry: prometheus_client.CollectorRegistry = dataclasses.field(
114-
default_factory=prometheus_client.CollectorRegistry, init=False
113+
collector_registry: "prometheus_client.CollectorRegistry" = dataclasses.field(
114+
default_factory=lambda: prometheus_client.CollectorRegistry(), init=False
115115
)
116116
not_ready_message = (
117117
PrometheusInstrument.not_ready_message

0 commit comments

Comments
 (0)