Skip to content

Commit 1c9705a

Browse files
committed
nipanel: Use typing_extensions directly
1 parent dfe8a7e commit 1c9705a

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/nipanel/_panel.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,14 @@
33
import sys
44
from abc import ABC
55
from types import TracebackType
6-
from typing import TYPE_CHECKING
76

87
import grpc
98
from ni_measurement_plugin_sdk_service.discovery import DiscoveryClient
109
from ni_measurement_plugin_sdk_service.grpc.channelpool import GrpcChannelPool
10+
from typing_extensions import Self
1111

1212
from nipanel._panel_value_accessor import PanelValueAccessor
1313

14-
if TYPE_CHECKING:
15-
if sys.version_info >= (3, 11):
16-
from typing import Self
17-
else:
18-
from typing_extensions import Self
19-
2014

2115
class Panel(PanelValueAccessor, ABC):
2216
"""This class allows you to open a panel and specify values for its controls."""

0 commit comments

Comments
 (0)