From ae6b4d724a776ac53f3e34a29800d9fe1816e80c Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Sun, 18 Sep 2022 23:07:52 +0000 Subject: [PATCH] Fix mypy --- gravesong.py | 2 +- poetry.lock | 14 +++++++++++++- pyproject.toml | 1 + twi.py | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/gravesong.py b/gravesong.py index 8e6162c..fa6d105 100644 --- a/gravesong.py +++ b/gravesong.py @@ -1,7 +1,7 @@ import logging import bs4 -from ebooklib import epub +from ebooklib import epub # type: ignore import requests import utils diff --git a/poetry.lock b/poetry.lock index 7b3d07e..7dbe517 100644 --- a/poetry.lock +++ b/poetry.lock @@ -296,6 +296,14 @@ category = "dev" optional = false python-versions = ">=3.6" +[[package]] +name = "types-beautifulsoup4" +version = "4.11.6" +description = "Typing stubs for beautifulsoup4" +category = "dev" +optional = false +python-versions = "*" + [[package]] name = "types-requests" version = "2.28.10" @@ -351,7 +359,7 @@ testing = ["func-timeout", "jaraco.itertools", "pytest (>=6)", "pytest-black (>= [metadata] lock-version = "1.1" python-versions = "^3.7" -content-hash = "54ddbda26ea7b22719dc65a94d931892eec4255c76b401eee0c0ce0ef2dc98a5" +content-hash = "1695a958629f667ad54a095f02e23e88440ce9ef788ef2ef329504608291afe0" [metadata.files] beautifulsoup4 = [ @@ -589,6 +597,10 @@ typed-ast = [ {file = "typed_ast-1.5.4-cp39-cp39-win_amd64.whl", hash = "sha256:0fdbcf2fef0ca421a3f5912555804296f0b0960f0418c440f5d6d3abb549f3e1"}, {file = "typed_ast-1.5.4.tar.gz", hash = "sha256:39e21ceb7388e4bb37f4c679d72707ed46c2fbf2a5609b8b8ebc4b067d977df2"}, ] +types-beautifulsoup4 = [ + {file = "types-beautifulsoup4-4.11.6.tar.gz", hash = "sha256:2670dd71995df464041e2941fa9bbb694795271e3dedd7262b4766649a1cbe82"}, + {file = "types_beautifulsoup4-4.11.6-py3-none-any.whl", hash = "sha256:ac9dd1383481201ea07f27c5a43e7b1ee71caf9c720b7ae951db15d60d126e80"}, +] types-requests = [ {file = "types-requests-2.28.10.tar.gz", hash = "sha256:97d8f40aa1ffe1e58c3726c77d63c182daea9a72d9f1fa2cafdea756b2a19f2c"}, {file = "types_requests-2.28.10-py3-none-any.whl", hash = "sha256:45b485725ed58752f2b23461252f1c1ad9205b884a1e35f786bb295525a3e16a"}, diff --git a/pyproject.toml b/pyproject.toml index 404a988..6394693 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,6 +19,7 @@ flake8 = "5.0.4" flake8-alphabetize = "0.0.17" flake8-black = "0.3.3" mypy = "0.971" +types-beautifulsoup4 = "4.11.6" types-requests = "2.28.10" [build-system] diff --git a/twi.py b/twi.py index 4af384e..426a854 100644 --- a/twi.py +++ b/twi.py @@ -1,7 +1,7 @@ import logging import bs4 -from ebooklib import epub +from ebooklib import epub # type: ignore import requests import utils