Skip to content

Commit 8d337d9

Browse files
committed
types: Fix missing runtime dependency
uv run --no-dev -p python3.13 -- python -c ' from tmuxp import _internal, cli, workspace, exc, log, plugin, shell, types, util, __version__ from tmuxp._internal import config_reader, types from tmuxp.workspace import builder, constants, finders, freezer, importers, loader, validation from libtmux import __version__ as __libtmux_version__ print("tmuxp version:", __version__) print("libtmux version:", __libtmux_version__) ' shell: /usr/bin/bash -e {0} env: UV_CACHE_DIR: /home/runner/work/_temp/setup-uv-cache Using CPython 3.13.2 Creating virtual environment at: .venv Building tmuxp @ file:///home/runner/work/tmuxp/tmuxp Built tmuxp @ file:///home/runner/work/tmuxp/tmuxp Installed 4 packages in 1ms Traceback (most recent call last): File "<string>", line 3, in <module> from tmuxp._internal import config_reader, types File "/home/runner/work/tmuxp/tmuxp/src/tmuxp/_internal/types.py", line 15, in <module> from typing_extensions import NotRequired, TypedDict ModuleNotFoundError: No module named 'typing_extensions'
1 parent 0b260d7 commit 8d337d9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/tmuxp/_internal/types.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,16 @@
1212

1313
from __future__ import annotations
1414

15-
from typing_extensions import NotRequired, TypedDict
15+
import typing as t
16+
from typing import TypedDict
17+
18+
if t.TYPE_CHECKING:
19+
import sys
20+
21+
if sys.version_info >= (3, 11):
22+
from typing import NotRequired
23+
else:
24+
from typing_extensions import NotRequired
1625

1726

1827
class PluginConfigSchema(TypedDict):

0 commit comments

Comments
 (0)