test_services: widen _get_reps' value type to match queue_get
queue_get accepts dict | list since #335's Collection test started queueing a batch list, but _get_reps was still typed list[dict] -- ty flagged the list.append() as invalid. No behavior change.
This commit is contained in:
@@ -54,7 +54,7 @@ class _FakeSession:
|
||||
self.post_calls: list[tuple[list[str], bytes]] = []
|
||||
self.get_calls: list[list[str]] = []
|
||||
self._post_code = post_code
|
||||
self._get_reps: dict[str, list[dict]] = {}
|
||||
self._get_reps: dict[str, list[dict | list]] = {}
|
||||
|
||||
def queue_get(self, href: str, rep: dict | list) -> None:
|
||||
"""Queue one more canned rep for `href`'s next GET. Once an href's
|
||||
|
||||
Reference in New Issue
Block a user