MCPcopy Index your code
hub / github.com/prometheus/client_python / MyNumber

Class MyNumber

tests/test_exposition.py:181–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179
180 def test_nonnumber(self):
181 class MyNumber:
182 def __repr__(self):
183 return "MyNumber(123)"
184
185 def __float__(self):
186 return 123.0
187
188 class MyCollector:
189 def collect(self):

Callers 1

collectMethod · 0.70

Calls

no outgoing calls

Tested by 1

collectMethod · 0.56