Skip to content

Commit fcc51f1

Browse files
committed
fix: python 3.10 compatibility
1 parent 28402a9 commit fcc51f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

flask_restx/reqparse.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import decimal
22

3-
from collections import Hashable
3+
try:
4+
from collections.abc import Hashable
5+
except ImportError:
6+
from collections import Hashable
47
from copy import deepcopy
58
from flask import current_app, request
69

0 commit comments

Comments
 (0)