Skip to content

Commit 0e705cd

Browse files
committed
Allow modern type hints for older Python
1 parent 2cc2364 commit 0e705cd

10 files changed

+19
-0
lines changed

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,5 @@ version.source = "vcs"
6161
local_scheme = "no-local-version"
6262

6363
[tool.isort]
64+
add_imports = "from __future__ import annotations"
6465
profile = "black"

src/stravavis/__main__.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from . import cli
24

35
if __name__ == "__main__":

src/stravavis/cli.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import argparse
24
import glob
35
import os.path

src/stravavis/plot_calendar.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import calmap
24
import matplotlib.pyplot as plt
35
import pandas as pd

src/stravavis/plot_dumbbell.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import pandas as pd
24
from plotnine import (
35
aes,

src/stravavis/plot_elevations.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import math
24

35
import matplotlib.pyplot as plt

src/stravavis/plot_facets.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import math
24

35
import matplotlib.pyplot as plt

src/stravavis/plot_landscape.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import matplotlib.pyplot as plt
24
import pandas as pd
35
from rich.progress import track

src/stravavis/plot_map.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from math import log, pi, tan
24

35
import matplotlib.pyplot as plt

src/stravavis/process_activities.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import pandas as pd
24

35

0 commit comments

Comments
 (0)