Skip to content

Commit a35bb41

Browse files
authored
Regression: #6547 main needs default (#6571)
Fix regression error from #6547. Default value `None` is needed for main function, was removed accidentally.
2 parents bf26e01 + 5dce3f9 commit a35bb41

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

beets/ui/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ def _open_library(config: confuse.LazyConfig) -> library.Library:
902902
return lib
903903

904904

905-
def _raw_main(args: list[str]) -> None:
905+
def _raw_main(args: list[str] | None) -> None:
906906
"""A helper function for `main` without top-level exception
907907
handling.
908908
"""
@@ -993,7 +993,7 @@ def parse_csl_callback(
993993
lib._close()
994994

995995

996-
def main(args: list[str]) -> None:
996+
def main(args: list[str] | None = None) -> None:
997997
"""Run the main command-line interface for beets. Includes top-level
998998
exception handlers that print friendly error messages.
999999
"""

0 commit comments

Comments
 (0)