Skip to content

Commit

Permalink
Python 3.10 compatibility: import from collections.abc
Browse files Browse the repository at this point in the history
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
  • Loading branch information
osnyx authored and ctheune committed Feb 6, 2023
1 parent e2ea5a0 commit d01b538
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consulate/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d01b538

Please sign in to comment.