Simulate a weather‑API call (demo only).
(self, location: str, units: str)
| 21 | location: str |
| 22 | |
| 23 | def _execute(self, location: str, units: str) -> dict: # sync implementation |
| 24 | """Simulate a weather‑API call (demo only).""" |
| 25 | time.sleep(0.5) # pretend network latency |
| 26 | return { |
| 27 | "temperature": 22.5, |
| 28 | "conditions": "Partly Cloudy", |
| 29 | "humidity": 65.0, |
| 30 | "location": location, |
| 31 | } |
nothing calls this directly
no outgoing calls
no test coverage detected