Skip to content

Commit da91cfe

Browse files
Use optional for Py<3.10
1 parent e28a948 commit da91cfe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utilities/supportData/dataFetcher.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import functools
2222
import requests
2323
import pooch
24+
from typing import Optional
2425

2526
from Basilisk.utilities.supportData.registrySnippet import REGISTRY
2627
from Basilisk import __version__
@@ -70,7 +71,7 @@ def select_base_url() -> str:
7071
return fallback if DATA_VERSION == "v0.0.0" or not tag_exists(tag_url) else tag_url
7172

7273

73-
def find_local_support_data() -> Path | None:
74+
def find_local_support_data() -> Optional[Path]:
7475
"""
7576
Return the path to the local ``supportData`` directory if running
7677
from a cloned repo in editable mode, otherwise return ``None``.

0 commit comments

Comments
 (0)