Skip to content

Commit c6ead93

Browse files
committed
Revert "TYPE_CHECKING blocks where relevant"
This reverts commit c0a3e87.
1 parent c0a3e87 commit c6ead93

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

sdds/classes.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,11 @@
77
https://ops.aps.anl.gov/manuals/SDDStoolkit/SDDStoolkitsu2.html
88
"""
99

10-
from __future__ import annotations
11-
1210
import logging
1311
import warnings
12+
from collections.abc import Iterator
1413
from dataclasses import dataclass, fields
15-
from typing import TYPE_CHECKING, Any, ClassVar
16-
17-
if TYPE_CHECKING:
18-
from collections.abc import Iterator
14+
from typing import Any, ClassVar
1915

2016
LOGGER = logging.getLogger(__name__)
2117

sdds/reader.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
It provides a high-level function to read SDDS files in different formats, and a series of helpers.
77
"""
88

9-
from __future__ import annotations
10-
119
import gzip
1210
import os
1311
import pathlib

sdds/writer.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@
66
It provides a high-level function to write SDDS files in different formats, and a series of helpers.
77
"""
88

9-
from __future__ import annotations
10-
119
import pathlib
1210
import struct
13-
from typing import IO, TYPE_CHECKING, Any
11+
from collections.abc import Iterable
12+
from typing import IO, Any
1413

1514
import numpy as np
1615

@@ -26,9 +25,6 @@
2625
get_dtype_str,
2726
)
2827

29-
if TYPE_CHECKING:
30-
from collections.abc import Iterable
31-
3228

3329
def write_sdds(sdds_file: SddsFile, output_path: pathlib.Path | str) -> None:
3430
"""

0 commit comments

Comments
 (0)