Skip to content

Commit aaee3e7

Browse files
committed
dotnet: Add type hints
1 parent 8c0a0f6 commit aaee3e7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dotnet/flatpak-dotnet-generator.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from pathlib import Path
1313

1414

15-
def main():
15+
def main() -> None:
1616
# Bump this to latest freedesktop runtime version.
1717
freedesktop_default = "24.08"
1818
# Bump this to an LTS dotnet version.
@@ -56,7 +56,7 @@ def main():
5656
sources = []
5757
with tempfile.TemporaryDirectory(dir=Path()) as tmp:
5858

59-
def restore_project(project, runtime):
59+
def restore_project(project: str, runtime: str | None) -> None:
6060
subprocess.run(
6161
[
6262
"flatpak",
@@ -76,7 +76,8 @@ def restore_project(project, runtime):
7676
project,
7777
]
7878
+ (["-r", runtime] if runtime else [])
79-
+ (args.dotnet_args or []), check=False
79+
+ (args.dotnet_args or []),
80+
check=False,
8081
)
8182

8283
with concurrent.futures.ThreadPoolExecutor() as executor:

0 commit comments

Comments
 (0)