Skip to content

Commit 26db5d1

Browse files
committed
chore: rename variables to reflect reality
1 parent 756762c commit 26db5d1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

scripts/publish_api_coverage.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
REPO_ROOT = pathlib.Path(__file__).parent.parent
3737

38-
URL_PREFIX = {
38+
BIGFRAMES_OBJECT = {
3939
"pandas": "bigframes.pandas",
4040
"dataframe": "bigframes.pandas.DataFrame",
4141
"dataframegroupby": "bigframes.core.groupby.DataFrameGroupBy",
@@ -288,17 +288,17 @@ def build_api_coverage_table(bigframes_version: str, release_version: str):
288288

289289

290290
def format_api(api_names, is_in_bigframes, api_prefix):
291-
api_names = api_names.str.slice(start=len(f"{api_prefix}."))
292-
formatted = "<code>" + api_names + "</code>"
293-
url_base = URL_PREFIX.get(api_prefix)
294-
if url_base is None:
291+
api_name = api_names.str.slice(start=len(f"{api_prefix}."))
292+
formatted = "<code>" + api_name + "</code>"
293+
bigframes_object = BIGFRAMES_OBJECT.get(api_prefix)
294+
if bigframes_object is None:
295295
return formatted
296296

297297
linked = (
298298
'<a href="https://dataframes.bigquery.dev/reference/api/'
299-
+ url_base
299+
+ bigframes_object
300300
+ "."
301-
+ api_names
301+
+ api_name
302302
+ '.html">'
303303
+ formatted
304304
+ "</a>"

0 commit comments

Comments
 (0)