Miksus / rocketry

Modern scheduling library for Python
https://rocketry.readthedocs.io
MIT License
3.27k stars 106 forks source link

BUG Argument of type "Literal['daily_notification']" cannot be assigned to parameter "task_names" of type #174

Closed tekumara closed 1 year ago

tekumara commented 1 year ago

Describe the bug

Argument of type "Literal['daily_notification']" cannot be assigned to parameter "task_names" of type "Tuple[str]" in function "run"
  "Literal['daily_notification']" is incompatible with "Tuple[str]" Pylance[reportGeneralTypeIssues](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportGeneralTypeIssues)
CleanShot 2022-12-12 at 21 27 19@2x

To Reproduce

    app.session.run('daily_notification')

Expected behavior

No type error in Vscode/Pylance. ie: task_name is of type str (see Arbitrary argument lists and default argument values)

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.