Fix mypy
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michel Roux 2022-09-18 23:07:52 +00:00
parent 0e9cd0eb96
commit ae6b4d724a
4 changed files with 16 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import logging
import bs4
from ebooklib import epub
from ebooklib import epub # type: ignore
import requests
import utils

14
poetry.lock generated
View File

@ -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"},

View File

@ -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]

2
twi.py
View File

@ -1,7 +1,7 @@
import logging
import bs4
from ebooklib import epub
from ebooklib import epub # type: ignore
import requests
import utils