From efce7f9f0513ed311a8d026edc1e4f76793c723e Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 15 Aug 2024 11:58:32 +0200 Subject: [PATCH] Fix weird typing issue breaking runtime ~_~ --- src/user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/user.py b/src/user.py index 985f90b2a..b6411c350 100644 --- a/src/user.py +++ b/src/user.py @@ -24,7 +24,7 @@ import random import subprocess import copy from logging import getLogger -from typing import TYPE_CHECKING, Any, TextIO, Optional, Callable, cast +from typing import TYPE_CHECKING, Any, TextIO, Optional, Callable, Union, cast from moulinette import Moulinette, m18n from moulinette.utils.process import check_output @@ -652,7 +652,7 @@ def user_info(username: str) -> dict[str, str]: return result_dict -def user_export() -> str | "HTTPResponseType": +def user_export() -> Union[str, "HTTPResponseType"]: """ Export users into CSV