Skip to content

Commit 15f2707

Browse files
MetaPlugin fix for beautifulsoup4>=4.13.5 (#156)
Signed-off-by: Onuralp SEZER <[email protected]> Signed-off-by: Glenn Jocher <[email protected]> Co-authored-by: Glenn Jocher <[email protected]>
1 parent 4c7f63f commit 15f2707

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

plugin/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
22

3-
__version__ = "0.1.28"
3+
__version__ = "0.1.29"
44

55
from .main import MetaPlugin
66

plugin/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def insert_content(soup: BeautifulSoup, content_to_insert) -> None:
167167
if comments_header := soup.find("h2", id="__comments"):
168168
comments_header.insert_before(content_to_insert)
169169
# Fallback: append the content to the md-typeset div if the comments header is not found
170-
if md_typeset := soup.select_one(".md-content__inner"):
170+
elif md_typeset := soup.select_one(".md-content__inner"):
171171
md_typeset.append(content_to_insert)
172172

173173
@staticmethod

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ classifiers = [
5858
] # Optional, for a list of valid classifiers, see https://pypi.org/classifiers/
5959
dependencies = [
6060
"mkdocs>=1.0",
61-
"beautifulsoup4>=4.9.3,<=4.12.3",
61+
"beautifulsoup4>=4.13.5",
6262
"pyyaml",
6363
"requests>=2.28.1", # do not increase (conflicts in Ultralytics deps)
6464
]

0 commit comments

Comments
 (0)