You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
frompytheus.metricsimportGaugegauge=Gauge(
"room_temperature", "temperature in the living room", ["room_name"]
)
gauge.labels(room_name="bedroom").set(25)
# pyright throws an error# Cannot access attribute "set" for class "_Metric"## gauge.labels(room_name="bedroom") should return Gauge type, not _Metric
The text was updated successfully, but these errors were encountered:
pradishb
changed the title
labels() return _Metric type instead of Selflabels() returns _Metric type instead of SelfOct 5, 2024
The text was updated successfully, but these errors were encountered: