mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 01:05:48 +02:00
Make mypy happy
This commit is contained in:
@@ -7,7 +7,7 @@ from collections import defaultdict
|
||||
from collections.abc import Generator, Sequence
|
||||
from contextlib import contextmanager, suppress
|
||||
from itertools import count
|
||||
from typing import TYPE_CHECKING, DefaultDict, Iterable, Optional, TypedDict
|
||||
from typing import TYPE_CHECKING, DefaultDict, Iterable, Mapping, Optional, TypedDict
|
||||
|
||||
import kitty.fast_data_types as fast_data_types
|
||||
|
||||
@@ -145,7 +145,7 @@ def environ_of_process(pid: int) -> dict[str, str]:
|
||||
return parse_environ_block(_environ_of_process(pid))
|
||||
|
||||
|
||||
def process_env(env: dict[str, str] | None = None) -> dict[str, str]:
|
||||
def process_env(env: Mapping[str, str] | None = None) -> dict[str, str]:
|
||||
ans = dict(os.environ if env is None else env)
|
||||
ssl_env_var = getattr(sys, 'kitty_ssl_env_var', None)
|
||||
if ssl_env_var is not None:
|
||||
|
||||
Reference in New Issue
Block a user