Skip to content

AttributeError: module 'collections' has no attribute 'Hashable' #40

@krmchal

Description

@krmchal

After attempting to use just your basic examples I was presented with the following Attribute Error:
AttributeError: module 'collections' has no attribute 'Hashable'

I am using Python 3.11.0. After taking a look at the source code it appears collections has updated their implementations and structure and the Hashable attribute is now located in "collections.abc.Hashable"

The error can be fixed by updating the following line

if not isinstance(args, collections.Hashable):

with -
if not isinstance(args, collections.abc.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