cjdrake / pyeda

Python EDA
BSD 2-Clause "Simplified" License
301 stars 55 forks source link

Warning: collections.abc instead of collections deprecated #172

Closed kitaniman closed 1 year ago

kitaniman commented 1 year ago

I got the following warning from pytest:

...../site-packages/pyeda/boolalg/bfarray.py:1033: 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 if not isinstance(objs, collections.Sequence):

can be solved simply by adding import collections.abc as collections and then collections can be renamed to collections_abc for example and all instances will change accordingly.

kitaniman commented 1 year ago

This actually becomes an error in python 11, So it needs to be fixed for the module to work with python 11

cjdrake commented 1 year ago

Pretty sure this is fixed now in main branch. The question of having a 3.11 release is a separate issue.