Closed jaraco closed 6 months ago
The issue appears to be in this code:
Presumably, response.json()
returns a sequence of state dicts. Aah, and single
will defer to whatever more_itertools.only
returns, which could be None
depending on the parameters.
But since single
does not specify a default, it can't return None, so its type declaration should indicate as much.
Turns out mypy caught a legitimate error, and that error is fixed in db296b9.
Since the last successful test run, the mypy tests started failing: