Skip to content

Commit 217c3d9

Browse files
import annotations from future
try to resolve use of | for python 3.8
1 parent ba4e0fe commit 217c3d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/python/plot_projdata_profiles.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@
1515
# SPDX-License-Identifier: Apache-2.0
1616
# See STIR/LICENSE.txt for details
1717

18+
from __future__ import annotations # for supporting newer typing info in old Python versions (from 3.7)
19+
1820
import argparse
1921
import sys
2022

2123
import matplotlib.pyplot as plt
2224
import numpy as np
23-
2425
import stir
2526
import stirextra
2627

0 commit comments

Comments
 (0)