diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8225d7c..d339d8b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -79,4 +79,3 @@ repos: language: system types: [python] exclude: tasks.py$ - args: ["--cache-dir=/dev/null"] diff --git a/stubs/readtime/api.pyi b/stubs/readtime/api.pyi index 3d326a1..305be57 100644 --- a/stubs/readtime/api.pyi +++ b/stubs/readtime/api.pyi @@ -1,5 +1,5 @@ from .result import Result -def of_text(text, wpm: int | None = ...) -> Result: ... -def of_html(html, wpm: int | None = ...) -> Result: ... -def of_markdown(markdown, wpm: int | None = ...) -> Result: ... +def of_text(text: str, wpm: int | None = ...) -> Result: ... +def of_html(html: str, wpm: int | None = ...) -> Result: ... +def of_markdown(markdown: str, wpm: int | None = ...) -> Result: ... diff --git a/stubs/readtime/result.pyi b/stubs/readtime/result.pyi index f22c6d7..5cc85af 100644 --- a/stubs/readtime/result.pyi +++ b/stubs/readtime/result.pyi @@ -11,4 +11,4 @@ class Result: def minutes(self) -> int: ... @property def text(self) -> str: ... - def total_seconds(self, delta) -> int: ... + def total_seconds(self, delta: timedelta) -> int: ...