Do not use prewarming for wrapped kittens

This commit is contained in:
Kovid Goyal
2023-01-23 15:21:04 +05:30
parent 35c1ebd3f9
commit 0903ae7b4d
2 changed files with 32 additions and 11 deletions

View File

@@ -6,7 +6,7 @@ import os
import pwd
import sys
from contextlib import suppress
from typing import TYPE_CHECKING, Any, Iterator, NamedTuple, Optional, Set
from typing import TYPE_CHECKING, Any, FrozenSet, Iterator, NamedTuple, Optional, Set
from .types import run_once
@@ -296,3 +296,9 @@ def local_docs() -> str:
if os.path.isdir(q):
return q
return ''
@run_once
def wrapped_kitten_names() -> FrozenSet[str]:
import kitty.fast_data_types as f
return frozenset(f.wrapped_kitten_names())