mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 23:14:55 +02:00
Minor strictness increases
This commit is contained in:
@@ -26,13 +26,11 @@ from kitty.utils import log_error
|
||||
if is_macos:
|
||||
from .core_text import get_font_files as get_font_files_coretext, font_for_family as font_for_family_macos
|
||||
if TYPE_CHECKING:
|
||||
from .core_text import CoreTextFont
|
||||
CoreTextFont
|
||||
from .core_text import CoreTextFont # noqa
|
||||
else:
|
||||
from .fontconfig import get_font_files as get_font_files_fontconfig, font_for_family as font_for_family_fontconfig
|
||||
if TYPE_CHECKING:
|
||||
from .fontconfig import FontConfigPattern
|
||||
FontConfigPattern
|
||||
from .fontconfig import FontConfigPattern # noqa
|
||||
|
||||
FontObject = Union['CoreTextFont', 'FontConfigPattern']
|
||||
current_faces: List[Tuple[FontObject, bool, bool]] = []
|
||||
|
||||
Reference in New Issue
Block a user