Skip to content

Commit

Permalink
Bugfix for older python versions
Browse files Browse the repository at this point in the history
New commit due to new syntax accidentally used in previous commit, which broke compatibility for older versions of Python.
  • Loading branch information
alenrajsp committed Jan 31, 2024
1 parent 1265990 commit 1e1d226
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tcxreader"
version = "0.4.8"
version = "0.4.9"
description = "tcxreader is a reader for Garmin’s TCX file format. It also works well with missing data!"
authors = ["Alen Rajšp <alen.rajsp@gmail.com>"]
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions tcxreader/tcxreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class TCXReader:
def __init__(self):
pass

def read(self, fileLocation: str, only_gps: bool = True, null_value_handling: int | NullValueHandling = 1) -> TCXExercise:
def read(self, fileLocation: str, only_gps: bool = True, null_value_handling: int = 1) -> TCXExercise:
"""
:param only_gps: If set to True erases any Trackpoints at the start and end of the exercise without GPS data.
:param fileLocation: Location of the TCX file.
Expand Down Expand Up @@ -256,7 +256,7 @@ def __fill_none_with_averages_for_data(data):

return new_trackpoints

def __find_hi_lo_avg(self, tcx: TCXExercise|TCXLap, only_gps: bool) -> TCXExercise:
def __find_hi_lo_avg(self, tcx: TCXExercise, only_gps: bool) -> TCXExercise:
trackpoints = tcx.trackpoints

if only_gps == True:
Expand Down

0 comments on commit 1e1d226

Please sign in to comment.