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

Python3.8.10 on Linux throws this, no other version does? #61

Open
emuskardin opened this issue Sep 16, 2024 · 2 comments
Open

Python3.8.10 on Linux throws this, no other version does? #61

emuskardin opened this issue Sep 16, 2024 · 2 comments

Comments

@emuskardin
Copy link
Member

Traceback (most recent call last):
  File "git_learning.py", line 1, in <module>
    from aalpy.learning_algs import run_Lstar
  File "/mnt/c/Users/muskardine/PycharmProjects/git_learning/myvenv/lib/python3.8/site-packages/aalpy/__init__.py", line 1, in <module>
    from .automata import (
  File "/mnt/c/Users/muskardine/PycharmProjects/git_learning/myvenv/lib/python3.8/site-packages/aalpy/automata/__init__.py", line 8, in <module>
    from .Sevpa import Sevpa, SevpaState, SevpaAlphabet, SevpaTransition
  File "/mnt/c/Users/muskardine/PycharmProjects/git_learning/myvenv/lib/python3.8/site-packages/aalpy/automata/Sevpa.py", line 87, in <module>
    class Sevpa(Automaton):
  File "/mnt/c/Users/muskardine/PycharmProjects/git_learning/myvenv/lib/python3.8/site-packages/aalpy/automata/Sevpa.py", line 93, in Sevpa
    def __init__(self, initial_state: SevpaState, states: list[SevpaState]):
TypeError: 'type' object is not subscriptable
@emuskardin
Copy link
Member Author

@zwergziege
https://stackoverflow.com/questions/75202610/typeerror-type-object-is-not-subscriptable-python

You see, the absence of types would be superior to such trivial mistakes... well of course List[x] is fundamentally different to list[x]

@zwergziege
Copy link
Collaborator

This is why we should only support 3.10+ :p

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

2 participants