Closed albertz closed 5 months ago
did not cover update_rqmt yet because this would require Protocol (not just Callable), and I'm not sure if we want that
Why would Callable[[Dict[str, Any], Dict[str, Any]], Dict[str, Any]]
not work?
did not cover update_rqmt yet because this would require Protocol (not just Callable), and I'm not sure if we want that
Why would
Callable[[Dict[str, Any], Dict[str, Any]], Dict[str, Any]]
not work?
We call self._update_rqmt(last_rqmt=last_rqmt, last_usage=last_usage)
, i.e. we use named args, which is not supported by Callable
.
Also removed Python 2 style code to derive from object.
I did not cover
update_rqmt
yet because this would requireProtocol
(not justCallable
), and I'm not sure if we want that (requires Python 3.8).