Add return type
This commit is contained in:
parent
46760cf8ae
commit
af84a0ee01
|
|
@ -1,4 +1,5 @@
|
|||
from io import BytesIO
|
||||
from typing import Optional
|
||||
|
||||
import structlog
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
|
@ -22,8 +23,8 @@ def export_persons(
|
|||
user: User,
|
||||
course_session_ids: list[str],
|
||||
save_as_file: bool = False,
|
||||
):
|
||||
if len(course_session_ids) == 0:
|
||||
) -> Optional[bytes]:
|
||||
if not course_session_ids:
|
||||
return
|
||||
|
||||
wb = Workbook()
|
||||
|
|
|
|||
Loading…
Reference in New Issue