diff --git a/stubs/python-crontab/crontabs.pyi b/stubs/python-crontab/crontabs.pyi index fcdfb77d8e42..23d5dd294a60 100644 --- a/stubs/python-crontab/crontabs.pyi +++ b/stubs/python-crontab/crontabs.pyi @@ -5,7 +5,7 @@ from crontab import CronTab class UserSpool(list[CronTab]): def __init__(self, loc: str, tabs: CronTabs | None = None) -> None: ... def listdir(self, loc: str) -> list[str]: ... - def get_owner(self, path: str) -> str: ... + def get_owner(self, path: str) -> str | None: ... def generate(self, loc: str, username: str) -> CronTab: ... class SystemTab(list[CronTab]):