Skip to content

Commit 5b758f1

Browse files
author
Jan Sebastian Rothe
committed
fixed Optional output type hint
1 parent 5ac1e79 commit 5b758f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/fagfunksjoner/paths/versions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"""
66

77
import glob
8+
from typing import Optional
89

910
from dapla import FileClient
1011

@@ -157,7 +158,7 @@ def construct_file_pattern(filepath: str, version_denoter: str = "*") -> str:
157158
return f"{filepath_no_version}_v{version_denoter}{file_ext}"
158159

159160

160-
def get_fileversions(filepath: str) -> list[str] | None:
161+
def get_fileversions(filepath: str) -> Optional(list[str]):
161162
"""Retrieves a list of file versions matching a specified pattern.
162163
163164
This function generates a glob pattern based on the provided file path and retrieves

0 commit comments

Comments
 (0)