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

SyntaxError: invalid syntax #27

Open
Danielgb23 opened this issue Sep 30, 2021 · 0 comments
Open

SyntaxError: invalid syntax #27

Danielgb23 opened this issue Sep 30, 2021 · 0 comments

Comments

@Danielgb23
Copy link

Danielgb23 commented Sep 30, 2021

I get the following error trying to use make-deb on the source code from kitty, cloned from
here.

 File "/home/USER/Downloads/kitty/setup.py", line 63
    action: str = 'build'
          ^
SyntaxError: invalid syntax

This is the part of the code from the kitty repo causing trouble:

class Options(argparse.Namespace):
    action: str = 'build'
    debug: bool = False
    verbose: int = 0
    sanitize: bool = False
    prefix: str = './linux-package'
    incremental: bool = True
    profile: bool = False
    libdir_name: str = 'lib'
    extra_logging: List[str] = []
    extra_include_dirs: List[str] = []
    link_time_optimization: bool = 'KITTY_NO_LTO' not in os.environ
    update_check_interval: float = 24.0
    shell_integration: str = 'enabled'
    egl_library: Optional[str] = os.getenv('KITTY_EGL_LIBRARY')
    startup_notification_library: Optional[str] = os.getenv('KITTY_STARTUP_NOTIFICATION_LIBRARY')
    canberra_library: Optional[str] = os.getenv('KITTY_CANBERRA_LIBRARY')


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