We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3af1228 commit 517143eCopy full SHA for 517143e
1 file changed
src/zimscraperlib/html.py
@@ -39,7 +39,9 @@ def find_language_in(content: str | BinaryIO | TextIO, mime_type: str) -> str:
39
for key in keylist:
40
node = soup.find(nodename)
41
if node:
42
- if not isinstance(node, element.Tag) or not node.has_attr(key):
+ if not isinstance(
43
+ node, element.Tag # pyright:ignore[reportUnnecessaryIsInstance]
44
+ ) or not node.has_attr(key):
45
continue
46
if (
47
nodename == "meta"
0 commit comments