Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
kovidgoyal committed Jan 7, 2025
1 parent 69aead6 commit 42e0f98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kittens/query_terminal/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import sys
from binascii import hexlify, unhexlify
from contextlib import suppress
from typing import Dict, Optional, Type
from typing import Dict, Literal, Optional, Type

from kitty.constants import appname, str_version
from kitty.options.types import Options
Expand Down Expand Up @@ -232,7 +232,7 @@ class OSName(Query):
help_text: str = 'The name of the OS the terminal is running on. Kitty supports values: linux, macos, bsd or unknown'

@staticmethod
def get_result(opts: Options, window_id: int, os_window_id: int) -> str:
def get_result(opts: Options, window_id: int, os_window_id: int) -> Literal['macos', 'bsd', 'linux', 'unknown']:
from kitty.conf.utils import os_name
return os_name()

Expand Down

0 comments on commit 42e0f98

Please sign in to comment.