Skip to content

Commit a95ada7

Browse files
committed
Address incorrect return type
1 parent 2914177 commit a95ada7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/release/update-release-assets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from __future__ import annotations # This enables postponed evaluation of type annotations. Required for typing.TYPE_CHECKING. See https://peps.python.org/pep-0563/
2-
from typing import TYPE_CHECKING, List, Union, cast, Dict, Any, TypeVar, Callable, Sequence
2+
from typing import TYPE_CHECKING, List, Union, cast, Dict, Any, TypeVar, Callable, Sequence, Optional
33
import shutil
44
from tempfile import TemporaryDirectory
55
import subprocess
@@ -216,7 +216,7 @@ def __init__(self, name: str, actions: List[Union[WorkflowLogAction, WorkflowArt
216216
self.actions = actions
217217
self.allow_no_files = allow_no_files
218218

219-
def make(self, directory: Path) -> Path:
219+
def make(self, directory: Path) -> Optional[Path]:
220220
files: list[Path] = [file for action in self.actions for file in action.run()]
221221
if len(files) == 0:
222222
if not self.allow_no_files:

0 commit comments

Comments
 (0)