Spaces:
Build error
Build error
freemt
commited on
Commit
·
4d4ba88
1
Parent(s):
d682f18
Update error_msg typing-check fix
Browse files- radiobee/__main__.py +3 -3
radiobee/__main__.py
CHANGED
@@ -94,8 +94,7 @@ def process_2upoads(file1, file2):
|
|
94 |
def error_msg(
|
95 |
msg: Optional[str],
|
96 |
title: str = "error message",
|
97 |
-
|
98 |
-
):
|
99 |
"""Prepare error message for fn outputs."""
|
100 |
if msg is None:
|
101 |
msg = "none..."
|
@@ -107,7 +106,8 @@ def error_msg(
|
|
107 |
|
108 |
df = pd.DataFrame([msg], columns=[title])
|
109 |
|
110 |
-
return
|
|
|
111 |
|
112 |
|
113 |
if __name__ == "__main__":
|
|
|
94 |
def error_msg(
|
95 |
msg: Optional[str],
|
96 |
title: str = "error message",
|
97 |
+
) -> Tuple[Union[pd.DataFrame, None], None, None, None, None]:
|
|
|
98 |
"""Prepare error message for fn outputs."""
|
99 |
if msg is None:
|
100 |
msg = "none..."
|
|
|
106 |
|
107 |
df = pd.DataFrame([msg], columns=[title])
|
108 |
|
109 |
+
# return df, *((None,) * 4) # pyright complains
|
110 |
+
return df, None, None, None, None
|
111 |
|
112 |
|
113 |
if __name__ == "__main__":
|