MCPcopy
hub / github.com/benoitc/gunicorn / to_dict

Method to_dict

benchmarks/dirty_benchmark.py:110–114  ·  view source on GitHub ↗

Convert to dictionary for JSON serialization.

(self)

Source from the content-addressed store, hash-verified

108 latency_ms: LatencyStats = field(default_factory=LatencyStats)
109
110 def to_dict(self) -> dict:
111 """Convert to dictionary for JSON serialization."""
112 d = asdict(self)
113 d['latency_ms'] = asdict(self.latency_ms)
114 return d
115
116
117class MockConfig:

Callers 1

generate_reportFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected