Skip to content

Commit d7a8e60

Browse files
committed
FIX: import local cached_property if standard does not exist
1 parent d24fce7 commit d7a8e60

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rocketpy/Flight.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import math
1010
import time
1111
import warnings
12-
from functools import cached_property
1312

1413
import matplotlib.pyplot as plt
1514
import numpy as np
@@ -18,6 +17,11 @@
1817

1918
from .Function import Function
2019

20+
try:
21+
from functools import cached_property
22+
except ImportError:
23+
from .tools import cached_property
24+
2125

2226
class Flight:
2327
"""Keeps all flight information and has a method to simulate flight.

0 commit comments

Comments
 (0)