This commit is contained in:
Kovid Goyal
2025-01-07 11:54:06 +05:30
parent 42e0f98a27
commit d7207edf2b
2 changed files with 6 additions and 6 deletions

View File

@@ -176,10 +176,10 @@ class CurrentlyParsing:
currently_parsing = CurrentlyParsing()
OSNames = Literal['macos', 'bsd', 'linux', 'unknown']
@run_once
def os_name() -> Literal['macos', 'bsd', 'linux', 'unknown']:
def os_name() -> OSNames:
if is_macos:
return 'macos'
if 'bsd' in _plat: