|
23 | 23 | import codecs
|
24 | 24 | import datetime
|
25 | 25 | from collections.abc import Callable, Iterable, Iterator, Sequence
|
26 |
| -from typing import List, Optional, Tuple, Type, TypeVar, Union |
| 26 | +from typing import Optional, Type, TypeVar, Union |
27 | 27 |
|
28 | 28 | from pydifact.api import EDISyntaxError
|
29 | 29 | from pydifact.control import Characters
|
@@ -69,7 +69,7 @@ def __init__(
|
69 | 69 | extra_header_elements: Optional[Elements] = None,
|
70 | 70 | characters: Optional[Characters] = None,
|
71 | 71 | ) -> None:
|
72 |
| - self.segments: List[Segment] = [] |
| 72 | + self.segments: list[Segment] = [] |
73 | 73 |
|
74 | 74 | # set of control characters
|
75 | 75 | self.characters = characters or Characters()
|
@@ -198,7 +198,7 @@ def add_segments(self, segments: Iterable[Segment]) -> None:
|
198 | 198 | instead, without passing a ``UNA`` Segment.
|
199 | 199 |
|
200 | 200 | :param segments: The segments to add.
|
201 |
| - :type segments: List or iterable of :class:`~pydifact.segments.Segment` objects. |
| 201 | + :type segments: list or iterable of :class:`~pydifact.segments.Segment` objects. |
202 | 202 | """
|
203 | 203 | for segment in segments:
|
204 | 204 | self.add_segment(segment)
|
@@ -367,7 +367,7 @@ def __init__(
|
367 | 367 | sender: str,
|
368 | 368 | recipient: str,
|
369 | 369 | control_reference: str,
|
370 |
| - syntax_identifier: Tuple[str, int], |
| 370 | + syntax_identifier: tuple[str, int], |
371 | 371 | timestamp: Optional[datetime.datetime] = None,
|
372 | 372 | *args,
|
373 | 373 | **kwargs,
|
|
0 commit comments