From 6e92bb893733dd7985656b2d1aee0be2c32c96a7 Mon Sep 17 00:00:00 2001 From: Rachel Hu <39543727+Rachelonline@users.noreply.github.com> Date: Fri, 23 Jun 2023 10:44:33 -0700 Subject: [PATCH] MutableMapping moved, update __init__.py The attribute MutableMapping from the module collections got moved into collections.abc in python3.10. If we don't make this update, users will see this error when they try to use this package: https://stackoverflow.com/questions/70943244/attributeerror-module-collections-has-no-attribute-mutablemapping. --- flask_nav/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flask_nav/__init__.py b/flask_nav/__init__.py index 7c25dfa..9fea6ee 100644 --- a/flask_nav/__init__.py +++ b/flask_nav/__init__.py @@ -46,7 +46,7 @@ class NavbarRenderingError(Exception): pass -class ElementRegistry(collections.MutableMapping): +class ElementRegistry(collections.abc.MutableMapping): def __init__(self): self._elems = {}