We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b6b4f2 commit 68b5913Copy full SHA for 68b5913
nipype/utils/draw_gantt_chart.py
@@ -8,6 +8,7 @@
8
import random
9
import datetime
10
import simplejson as json
11
+from typing import Union
12
13
from collections import OrderedDict
14
from warnings import warn
@@ -103,7 +104,7 @@ def log_to_dict(logfile):
103
104
nodes_list = [json.loads(l) for l in lines]
105
106
def _convert_string_to_datetime(
- datestring: str | datetime.datetime,
107
+ datestring: Union[str, datetime.datetime],
108
) -> datetime.datetime:
109
"""Convert a date string to a datetime object."""
110
if isinstance(datestring, datetime.datetime):
0 commit comments