Superbird11 / ranges

Continuous Range, RangeSet, and RangeDict data structures for Python
MIT License
101 stars 10 forks source link

library is not compatible with python <3.11 #29

Open lzoledziewski opened 1 year ago

lzoledziewski commented 1 year ago

Tuple type annotations were introduced in python 3.11 https://peps.python.org/pep-0646/ Python versions without it e.g. 3.7 cause following import error: venv\lib\site-packages\ranges\RangeSet.py", line 49, in RangeSet def __init__(self, *args: Union[Rangelike, Iterable[Rangelike]]): TypeError: 'ABCMeta' object is not subscriptable