Skip to content

Commit b7453d8

Browse files
committed
Bump typings in cli down to 3.8 compatible version.
1 parent e2ccf06 commit b7453d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

aws_doc_sdk_examples_tools/doc_gen_cli.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
import json
55
from argparse import ArgumentParser
66
from pathlib import Path
7+
from typing import List
78
import logging
89

910
from .doc_gen import DocGen, DocGenEncoder
1011

1112
logging.basicConfig(level=logging.INFO)
1213

1314

14-
def merge_roots(doc_gen: DocGen, roots: list[str]):
15+
def merge_roots(doc_gen: DocGen, roots: List[str]):
1516
for root in roots:
1617
unmerged_doc_gen = DocGen.from_root(Path(root))
1718
doc_gen.merge(unmerged_doc_gen)
@@ -24,7 +25,7 @@ def write_doc_gen(doc_gen: DocGen, json_out: str):
2425
out.write(serialized)
2526

2627

27-
def write_snippets(doc_gen: DocGen, roots: list[str], snippets_out: str):
28+
def write_snippets(doc_gen: DocGen, roots: List[str], snippets_out: str):
2829
for root in roots:
2930
doc_gen.collect_snippets(Path(root))
3031

0 commit comments

Comments
 (0)