Skip to content

Commit 954d8ee

Browse files
committed
Remove type hints.
1 parent f717542 commit 954d8ee

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

build_for_portal.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
import sys
1414
import tempfile
1515
import time
16-
from typing import Union, Any, List
17-
1816
import requests
1917
import yaml
2018

@@ -274,7 +272,7 @@ def ensure_directory(directory):
274272
os.mkdir(directory)
275273

276274

277-
def build_master_files(info: dict[Union[str, Any], Union[Union[str, list[Any]], Any]]):
275+
def build_master_files(info):
278276
"""
279277
Builds the master.adoc and docinfo.xml files for each guide specified in the config.
280278
"""
@@ -348,7 +346,6 @@ def build_master_files(info: dict[Union[str, Any], Union[Union[str, list[Any]],
348346

349347
master_base = MASTER_FILE_BASE.format(**book_info)
350348
docinfo_node = topic["Name"]
351-
print(docinfo_node)
352349

353350
ensure_directory(os.path.join(book_dest_dir, topic["Dir"]))
354351
sub_master = generate_master_entry(
@@ -1122,7 +1119,7 @@ def main():
11221119
elif not os.path.exists(dest_dir):
11231120
os.makedirs(dest_dir)
11241121

1125-
info: dict[Union[str, Any], Union[Union[str, list[Any]], Any]] = {
1122+
info = {
11261123
"title": args.title,
11271124
"product-author": args.author,
11281125
"product-version": args.version,

0 commit comments

Comments
 (0)