From d64f0eb5369d4699af9b2812167429d38a08cb76 Mon Sep 17 00:00:00 2001 From: Muspi Merol Date: Wed, 19 Feb 2025 08:17:12 +0000 Subject: [PATCH 1/2] add `__all__` entry to satisfy pyright --- html_text/__init__.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/html_text/__init__.py b/html_text/__init__.py index a940a99..e4bcce2 100644 --- a/html_text/__init__.py +++ b/html_text/__init__.py @@ -10,3 +10,14 @@ parse_html, selector_to_text, ) + +__all__ = ( + "DOUBLE_NEWLINE_TAGS", + "NEWLINE_TAGS", + "cleaned_selector", + "cleaner", + "etree_to_text", + "extract_text", + "parse_html", + "selector_to_text", +) From 017815028c06ceb44119a1e08ebcddf5c06b4651 Mon Sep 17 00:00:00 2001 From: Muspi Merol Date: Wed, 19 Feb 2025 18:23:44 +0800 Subject: [PATCH 2/2] chore: try removing `--implicit-reexport` from `tox.ini` --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 78f6af6..c0234db 100644 --- a/tox.ini +++ b/tox.ini @@ -37,4 +37,4 @@ deps = pytest types-lxml==2024.12.13 commands = - mypy --strict --implicit-reexport {posargs: html_text tests} + mypy --strict {posargs: html_text tests}