Skip to content

Commit 262e403

Browse files
committed
use 'from typing import Optional' instead of int | None for old python's sake
1 parent b2492e8 commit 262e403

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/adios2/stream.py

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

66
from functools import singledispatchmethod
77
from sys import maxsize
8+
from typing import Optional
89
import numpy as np
910

1011
# pylint: disable=duplicate-code
@@ -922,7 +923,7 @@ def all_blocks_info(self, name):
922923

923924
return self._engine.all_blocks_info(name)
924925

925-
def minmax(self, name, step: int | None = None, block_info_list: list = []) -> tuple:
926+
def minmax(self, name, step: Optional[int] = None, block_info_list: list = []) -> tuple:
926927
"""
927928
Get min/max value for variable:
928929
- 'r' mode: min/max in the current step

0 commit comments

Comments
 (0)