Skip to content

Commit 3c7d248

Browse files
authored
nipanel: Delete _typing submodule and use typing_extensions directly (#20)
* nipanel: Add a dependency on typing_extensions * Update poetry.lock * nipanel: Use typing_extensions directly * nipanel: Delete _typing submodule
1 parent ed3320d commit 3c7d248

File tree

4 files changed

+4
-137
lines changed

4 files changed

+4
-137
lines changed

poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ python = "^3.9"
1111
grpcio = {version=">=1.49.0,<2.0"}
1212
protobuf = {version=">=4.21"}
1313
ni-measurement-plugin-sdk = {version=">=2.3"}
14+
typing-extensions = ">=4.13.2"
1415

1516
[tool.poetry.group.dev.dependencies]
1617
types-grpcio = ">=1.0"

src/nipanel/_panel_client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44

55
import logging
66
import threading
7-
from typing import TypeVar, Callable
7+
from typing import Callable, TypeVar
88

99
import grpc
1010
from ni.pythonpanel.v1.python_panel_service_pb2 import OpenPanelRequest
1111
from ni.pythonpanel.v1.python_panel_service_pb2_grpc import PythonPanelServiceStub
1212
from ni_measurement_plugin_sdk_service.discovery import DiscoveryClient
1313
from ni_measurement_plugin_sdk_service.grpc.channelpool import GrpcChannelPool
14-
15-
from nipanel._typing import ParamSpec
14+
from typing_extensions import ParamSpec
1615

1716
_P = ParamSpec("_P")
1817
_T = TypeVar("_T")

src/nipanel/_typing.py

Lines changed: 0 additions & 133 deletions
This file was deleted.

0 commit comments

Comments
 (0)