tuomur / python-odata

A simple library for read/write access to OData services
MIT License
79 stars 59 forks source link

Fails to import on python3.8 #56

Open tm-robinson opened 5 months ago

tm-robinson commented 5 months ago
$ python
Python 3.8.10 (default, Nov 22 2023, 10:22:35) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from odata import ODataService
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/tom/development/venv/lib/python3.8/site-packages/odata/__init__.py", line 5, in <module>
    from .service import ODataService
  File "/home/tom/development/venv/lib/python3.8/site-packages/odata/service.py", line 63, in <module>
    from .context import Context
  File "/home/tom/development/venv/lib/python3.8/site-packages/odata/context.py", line 5, in <module>
    from odata.query import Query
  File "/home/tom/development/venv/lib/python3.8/site-packages/odata/query.py", line 70, in <module>
    class Query(Generic[Q]):
  File "/home/tom/development/venv/lib/python3.8/site-packages/odata/query.py", line 280, in Query
    def all(self) -> list[Q]:
TypeError: 'type' object is not subscriptable