@@ -156,7 +156,7 @@ def __getitem__(
156156 """Access magic.
157157
158158 :param item: index
159- :type item: typing.Union[ int, slice, Iterable[typing.Union[ int, slice, ellipsis]] ]
159+ :type item: int | slice | Iterable[int | slice | ellipsis]
160160 :return: Joined selected lines
161161 :rtype: str
162162 :raises TypeError: Unexpected key
@@ -238,7 +238,7 @@ def __init__(
238238 :param cmd: command
239239 :type cmd: str
240240 :param stdin: string STDIN
241- :type stdin: typing.Union[ bytes, str, bytearray, None]
241+ :type stdin: bytes | str | bytearray | None
242242 :param stdout: binary STDOUT
243243 :type stdout: Iterable[bytes] | None
244244 :param stderr: binary STDERR
@@ -327,7 +327,7 @@ def _get_brief(cls, data: tuple[bytes, ...]) -> str:
327327 """Get brief output: 7 lines maximum (3 first + ... + 3 last).
328328
329329 :param data: source to process
330- :type data: typing.Tuple [bytes, ...]
330+ :type data: tuple [bytes, ...]
331331 :return: brief from source
332332 :rtype: str
333333 """
@@ -349,7 +349,7 @@ def stdin(self) -> str | None:
349349 """Stdin input as string.
350350
351351 :return: STDIN content if applicable.
352- :rtype: typing.Optional[ str]
352+ :rtype: str | None
353353 """
354354 return self .__stdin
355355
@@ -358,7 +358,7 @@ def stdout(self) -> tuple[bytes, ...]:
358358 """Stdout output as list of binaries.
359359
360360 :return: STDOUT as tuple of binary strings
361- :rtype: typing.Tuple [bytes, ...]
361+ :rtype: tuple [bytes, ...]
362362 """
363363 return self ._stdout
364364
@@ -367,7 +367,7 @@ def stderr(self) -> tuple[bytes, ...]:
367367 """Stderr output as list of binaries.
368368
369369 :return: STDERR as tuple of binary strings
370- :rtype: typing.Tuple [bytes, ...]
370+ :rtype: tuple [bytes, ...]
371371 """
372372 return self ._stderr
373373
0 commit comments