Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to import on python3.8 #56

Open
tm-robinson opened this issue Mar 8, 2024 · 0 comments
Open

Fails to import on python3.8 #56

tm-robinson opened this issue Mar 8, 2024 · 0 comments

Comments

@tm-robinson
Copy link

tm-robinson commented Mar 8, 2024

$ 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant