From 40cf1297ca9e4ada786433c4d85bb98c18d3a1c0 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 29 Dec 2021 16:24:22 +0100 Subject: [PATCH] Update stubs --- .pre-commit-config.yaml | 1 - stubs/readtime/api.pyi | 6 +++--- stubs/readtime/result.pyi | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) 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: ...