hamcrest/PyHamcrest

wrong type annotation for IsDictContainingEntries.describe_keyvalue

rittneje opened this issue · 1 comments

def describe_keyvalue(self, index: int, value: V, description: Description) -> None:
"""Describes key-value pair at given index."""
description.append_description_of(index).append_text(": ").append_description_of(value)

Isn't the type of index (which should really have been named key) actually K, not int?

Good catch. Not too urgent an issue, mind you, since I can't see the describe_keyvalue() method being used other than internally by the class itself.