Skip to content

Commit 1efbebb

Browse files
support python=3.14 (#960)
Co-authored-by: Don <[email protected]>
1 parent 40151ab commit 1efbebb

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ubuntu-22.04
77
strategy:
88
matrix:
9-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
9+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
1010
steps:
1111
# Checks out a copy of your repository on the ubuntu-latest machine
1212
- uses: actions/checkout@v4

rqalpha/mod/rqalpha_mod_sys_accounts/position_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def _get_split_ratio(self, splits) -> Decimal:
271271
for field in ["split_coefficient_to", "split_coefficient_from"]:
272272
if not all(isclose(splits[field] % 1, 0)):
273273
ratio = splits["split_coefficient_to"] / splits["split_coefficient_from"]
274-
return Decimal(ratio.cumprod[-1])
274+
return Decimal(ratio.cumprod()[-1])
275275

276276
coefficient_to = (splits["split_coefficient_to"].astype(int)).cumprod()[-1]
277277
coefficient_from = (splits["split_coefficient_from"].astype(int)).cumprod()[-1]

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
'Programming Language :: Python :: 3.11',
8585
'Programming Language :: Python :: 3.12',
8686
'Programming Language :: Python :: 3.13',
87+
'Programming Language :: Python :: 3.14',
8788
],
8889
python_requires=">=3.6"
8990
)

0 commit comments

Comments
 (0)