Skip to content

Commit

Permalink
Merge pull request #51 from tomhenderson/fix-collections-import
Browse files Browse the repository at this point in the history
Fix collections import (needed for Python 3.10)
  • Loading branch information
gjcarneiro authored Oct 5, 2021
2 parents fbb74e6 + e645cc6 commit 926ee3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pybindgen/cppclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
try:
collectionsCallable = collections.Callable
except AttributeError:
collectionsCallable = collections
import collections.abc
collectionsCallable = collections.abc.Callable

try:
set
Expand Down

0 comments on commit 926ee3b

Please sign in to comment.