From 90af71c122da8db311dad1d60ab91ca73b76268e Mon Sep 17 00:00:00 2001 From: PHP Wellnitz Date: Sat, 9 Apr 2022 04:27:02 +0900 Subject: [PATCH] Fix #2200 --- powerline/lint/markedjson/constructor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerline/lint/markedjson/constructor.py b/powerline/lint/markedjson/constructor.py index 2a95d840..372d84b3 100644 --- a/powerline/lint/markedjson/constructor.py +++ b/powerline/lint/markedjson/constructor.py @@ -122,7 +122,7 @@ class BaseConstructor: mapping = {} for key_node, value_node in node.value: key = self.construct_object(key_node, deep=deep) - if not isinstance(key, collections.Hashable): + if not isinstance(key, collections.abc.Hashable): self.echoerr( 'While constructing a mapping', node.start_mark, 'found unhashable key', key_node.start_mark