Skip to content

Commit 3dbe941

Browse files
Balandatfacebook-github-bot
authored andcommitted
Fix flake8 warnings after falke 3.8 upgrade (#441)
Summary: This fixes some errors that showed up in the CI lint check after a new flake8 release. Pull Request resolved: #441 Reviewed By: sdaulton Differential Revision: D21537119 Pulled By: Balandat fbshipit-source-id: 3d826b7687b9d048a4f362ae962ad73a62e1d8f6
1 parent 58b651d commit 3dbe941

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

botorch/acquisition/analytic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def _get_posterior(self, X: Tensor) -> Posterior:
7777

7878
def set_X_pending(self, X_pending: Optional[Tensor] = None) -> None:
7979
raise UnsupportedError(
80-
f"Analytic acquisition functions do not account for X_pending yet."
80+
"Analytic acquisition functions do not account for X_pending yet."
8181
)
8282

8383

scripts/update_versions_html.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ def prepend_url(a_tag, base_url, version):
4444

4545
# nav
4646
nav_links = soup.find("nav").findAll("a")
47-
for l in nav_links:
48-
l.attrs["href"] = prepend_url(l, base_url, v)
47+
for nl in nav_links:
48+
nl.attrs["href"] = prepend_url(nl, base_url, v)
4949

5050
# version link
5151
t = soup.find("h2", {"class": "headerTitleWithLogo"}).find_next("a")
@@ -55,8 +55,8 @@ def prepend_url(a_tag, base_url, version):
5555

5656
# footer
5757
nav_links = soup.find("footer").findAll("a")
58-
for l in nav_links:
59-
l.attrs["href"] = prepend_url(l, base_url, v)
58+
for nl in nav_links:
59+
nl.attrs["href"] = prepend_url(nl, base_url, v)
6060

6161
# output files
6262
with open(base_path + "/new-site/v/{}/versions.html".format(v), "w") as outfile:

0 commit comments

Comments
 (0)