Skip to content

Commit

Permalink
types: override tg
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBernstorff committed Sep 3, 2023
1 parent 00636ec commit d31e6f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ name = "MIT"
[project.optional-dependencies]
dev = [
"cruft>=2.0.0",
"pyright",
"pyright==1.1.325",
"pyright-polite>=0.0.1",
"pre-commit>=2.20.0",
"ruff>=0.0.254",
Expand Down
4 changes: 2 additions & 2 deletions src/gpt2anki/hydrator/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Callable

import requests
from bs4 import BeautifulSoup, NavigableString
from bs4 import BeautifulSoup, NavigableString, Tag
from gpt2anki.sources.base import HydratedHighlight, OrphanHighlight
from joblib import Memory

Expand Down Expand Up @@ -34,7 +34,7 @@ def get_highlight_context(
print(f"Could not find highlight {highlight} in {soup.title}")
return ""

highlight_container = highlight_selection.parent.parent
highlight_container: Tag = highlight_selection.parent.parent # type: ignore

context_strings: list[str] = []

Expand Down

0 comments on commit d31e6f3

Please sign in to comment.