Skip to content

Commit 6c4914c

Browse files
committed
handwritten: Fix F401 'typing.Optional' imported but unused
1 parent faa5386 commit 6c4914c

File tree

9 files changed

+2
-13
lines changed

9 files changed

+2
-13
lines changed

src/handwritten/__main__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from __future__ import annotations
44

55
import logging
6-
from typing import Optional
76

87
import click
98

src/handwritten/_grpc_time.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import annotations
22

33
from datetime import datetime as std_datetime, timezone, tzinfo as dt_tzinfo
4-
from typing import Optional, Union
54

65
from google.protobuf.timestamp_pb2 import Timestamp as GrpcTimestamp
76
from hightime import datetime as ht_datetime, timedelta as ht_timedelta

src/handwritten/_install_daqmx.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
from __future__ import annotations
22

33
import contextlib
4-
import errno
54
import importlib.resources as pkg_resources
65
import json
76
import logging
87
import os
9-
import pathlib
108
import re
11-
import shutil
129
import subprocess # nosec: B404
1310
import sys
1411
import tempfile
15-
import traceback
1612
import zipfile
17-
from typing import Generator, List, Optional, Tuple
13+
from typing import Generator
1814
from urllib.parse import urlparse
1915

2016
import click

src/handwritten/_lib.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import ctypes
44
import locale
5-
import platform
65
import sys
76
import threading
87
from ctypes.util import find_library

src/handwritten/_lib_time.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import ctypes
44
import functools
55
from datetime import datetime as std_datetime, timezone, tzinfo as dt_tzinfo
6-
from typing import Optional, Union
76

87
from hightime import datetime as ht_datetime, timedelta as ht_timedelta
98

src/handwritten/_linux_installation_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

33
from dataclasses import dataclass
4-
from typing import Callable, Dict, List, Tuple
4+
from typing import Callable
55

66

77
def _get_version_ubuntu(dist_version: str) -> str:

src/handwritten/_time.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import annotations
22

33
from datetime import datetime as std_datetime, timezone, tzinfo as dt_tzinfo
4-
from typing import Optional, Union
54
from zoneinfo import ZoneInfo
65

76
from hightime import datetime as ht_datetime

src/handwritten/stream_writers/_analog_single_channel_writer.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from typing import Any
44

5-
import numpy
65
from nitypes.waveform import AnalogWaveform
76

87
from nidaqmx._feature_toggles import WAVEFORM_SUPPORT, requires_feature

src/handwritten/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import re
66
from dataclasses import dataclass
7-
from typing import List, Optional
87

98
from nidaqmx._base_interpreter import BaseInterpreter
109
from nidaqmx.errors import DaqError

0 commit comments

Comments
 (0)