Skip to content

Commit

Permalink
Support newer pythons
Browse files Browse the repository at this point in the history
  • Loading branch information
matllubos committed Dec 20, 2022
1 parent e0f59f7 commit 4414b1b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ indent_size = 4
indent_style = space
indent_size = 4
line_length=120
known_third_party=factory,ipware,responses,requests,nose,south,coverage,six,suds,geopy,user_agents,celery,dateutil,jsonfield,easymode,PIL,pillow,mock,xlrd,attrdict,jinja2,phonenumber_field,magic
known_third_party=factory,ipware,responses,requests,nose,south,coverage,six,suds,geopy,user_agents,celery,dateutil,jsonfield,easymode,PIL,pillow,mock,xlrd,jinja2,phonenumber_field,magic
multi_line_output=0
lines_after_imports=2
known_django=django
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.7, 3.8]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions chamber/utils/datastructures.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import re

from collections import MutableSet, OrderedDict
from collections.abc import MutableSet
from itertools import chain


Expand All @@ -16,7 +16,7 @@ def __init__(self, *items):
if not ENUM_KEY_PATTERN.match(k):
raise ValueError('Enum key "{}" has invalid format'.format(k))

self._container = OrderedDict(items)
self._container = dict(items)
self._reverse_container = {item[1]: item[0] for item in items}

def _has_attr(self, name):
Expand Down
2 changes: 1 addition & 1 deletion example/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ flake8
freezegun==1.1.0
coveralls
diff-match-patch==20110725.1
django-germanium==2.1.0
https://github.com/druids/germanium/tarball/SupportPython3.9-3.11#egg=django-germanium
six==1.10.0
Pillow==8.3.2
boto3==1.16.47
Expand Down

0 comments on commit 4414b1b

Please sign in to comment.