Skip to content

Commit a7242ff

Browse files
committed
[core] removed deprecated typing imports
Resolves #36
1 parent e2c0b86 commit a7242ff

File tree

12 files changed

+22
-12
lines changed

12 files changed

+22
-12
lines changed

src/instrumentman/calculations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import math
2-
from typing import Sequence
2+
from collections.abc import Sequence
33

44
import numpy as np
55
import numpy.typing as npt

src/instrumentman/filetransfer/app.py

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

33
from io import BufferedWriter
4-
from typing import TypedDict, Callable
4+
from typing import TypedDict
5+
from collections.abc import Callable
56
import os
67
from re import compile, IGNORECASE
78
from logging import getLogger, Logger

src/instrumentman/morse/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from time import sleep
2-
from typing import Callable, Any
2+
from typing import Any
3+
from collections.abc import Callable
34
from logging import Logger, getLogger
45

56
from rich.progress import Progress, TextColumn, BarColumn, TaskProgressColumn

src/instrumentman/protocoltest/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from logging import Logger, getLogger
2-
from typing import Callable, Any
2+
from typing import Any
3+
from collections.abc import Callable
34

45
from rich.live import Live
56
from rich.table import Table, Column

src/instrumentman/setmeasurement/measure.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from datetime import datetime
22
from logging import Logger, getLogger
3-
from typing import Iterator, Literal
3+
from typing import Literal
4+
from collections.abc import Iterator
45
from itertools import chain
56
import pathlib
67

src/instrumentman/setmeasurement/process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import json
33
import math
4-
from typing import Sequence
4+
from collections.abc import Sequence
55
import pathlib
66
from io import TextIOWrapper
77

src/instrumentman/settings/load.py

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

33
from pathlib import Path
4-
from typing import Any, Callable
4+
from typing import Any
5+
from collections.abc import Callable
56
from logging import Logger, getLogger
67

78
from geocompy.communication import open_serial

src/instrumentman/settings/save.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from pathlib import Path
2-
from typing import Callable, Any
2+
from typing import Any
3+
from collections.abc import Callable
34
from enum import Enum
45
from logging import Logger, getLogger
56

src/instrumentman/setup/convert.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from io import TextIOWrapper
22
import csv
3-
from typing import cast, Callable
3+
from typing import cast
4+
from collections.abc import Callable
45

56
from rich.prompt import Prompt, FloatPrompt
67
from jsonschema import ValidationError

src/instrumentman/targets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
import os
44
import json
55
import re
6-
from typing import TypedDict, Iterator, Any, overload
6+
from typing import TypedDict, Any, overload
7+
from collections.abc import Iterator
78
from io import TextIOWrapper
89

910
from jsonschema import validate

0 commit comments

Comments
 (0)