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

Support for Python Versions < 3.10 #5

Closed
karim23657 opened this issue Jan 4, 2025 · 1 comment
Closed

Support for Python Versions < 3.10 #5

karim23657 opened this issue Jan 4, 2025 · 1 comment
Labels
low priority This will not be worked on at the moment

Comments

@karim23657
Copy link

I encountered a syntax error while running the code on Python versions below 3.10. The use of the match statement is causing a SyntaxError:

Traceback (most recent call last):
    from pybalt import download
  File "pybalt/__init__.py", line 1, in <module>
    from .cobalt import (
  File "pybalt/cobalt.py", line 335
    match json["error"]["code"].split(".")[2]:
          ^
SyntaxError: invalid syntax

Suggested Action

Please consider refactoring the code to remove the match statement or provide support for Python versions < 3.10.

Thank you! 😊

@nichind
Copy link
Owner

nichind commented Jan 4, 2025

Noted! Keep an eye at #3, it's still work in progress

@nichind nichind added the low priority This will not be worked on at the moment label Jan 16, 2025
@nichind nichind closed this as not planned Won't fix, can't repro, duplicate, stale Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low priority This will not be worked on at the moment
Projects
None yet
Development

No branches or pull requests

2 participants