From d01b53818d2f3610df3f05391ae0234597a0b468 Mon Sep 17 00:00:00 2001 From: Oliver Schmidt Date: Tue, 31 Jan 2023 18:38:15 +0100 Subject: [PATCH] Python 3.10 compatibility: import from collections.abc This fixes the deprecation warning DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working --- consulate/models/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consulate/models/base.py b/consulate/models/base.py index 50802bf..259b4fd 100644 --- a/consulate/models/base.py +++ b/consulate/models/base.py @@ -3,10 +3,10 @@ Base Model """ -import collections +from collections.abc import Iterable -class Model(collections.Iterable): +class Model(Iterable): """A model contains an __attribute__ map that defines the name, its type for type validation, an optional validation method, a method used to