diff options
author | Sean Quah <8349537+squahtx@users.noreply.github.com> | 2021-11-30 15:39:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-30 15:39:07 +0000 |
commit | 5a0b652d36ae4b6d423498c1f2c82c97a49c6f75 (patch) | |
tree | 16e7f4f015716252e2846ba187e5cece6d7fddbd /synapse/util/linked_list.py | |
parent | Remove unnecessary `json.dumps` from `tests.rest.admin` (#11461) (diff) | |
download | synapse-5a0b652d36ae4b6d423498c1f2c82c97a49c6f75.tar.xz |
Eliminate a few `Any`s in `LruCache` type hints (#11453)
Diffstat (limited to 'synapse/util/linked_list.py')
-rw-r--r-- | synapse/util/linked_list.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/util/linked_list.py b/synapse/util/linked_list.py index 9f4be757ba..8efbf061aa 100644 --- a/synapse/util/linked_list.py +++ b/synapse/util/linked_list.py @@ -84,7 +84,7 @@ class ListNode(Generic[P]): # immediately rather than at the next GC. self.cache_entry = None - def move_after(self, node: "ListNode") -> None: + def move_after(self, node: "ListNode[P]") -> None: """Move this node from its current location in the list to after the given node. """ @@ -122,7 +122,7 @@ class ListNode(Generic[P]): self.prev_node = None self.next_node = None - def _refs_insert_after(self, node: "ListNode") -> None: + def _refs_insert_after(self, node: "ListNode[P]") -> None: """Internal method to insert the node after the given node.""" # This method should only be called when we're not already in the list. |