Skip to content

Commit

Permalink
Fix Python3.11 collections import
Browse files Browse the repository at this point in the history
  • Loading branch information
avara1986 authored May 24, 2024
1 parent 9d95a94 commit 2c2c5d5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions consulate/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
Base Model
"""
import collections
try:
from collections.abc import Iterable # noqa
except ImportError:
from collections import Iterable # noqa


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 2c2c5d5

Please sign in to comment.