Skip to content

Incorrect type hints on memoize key #958

@ntjess

Description

@ntjess

Pretty straightforward -- the key should return something hashable, not the same return type as its memoized function. Occurrences of:

key: Callable[P, R]

Should be

# Earlier
# from typing import Hashable

key: Callable[P, Hashable]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions