Skip to content

Commit 74df35c

Browse files
committed
. e python types
1 parent 49ba83a commit 74df35c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

build/scripts/embed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838

3939
# globals
4040
will_escape = False
41-
guard_stack = []
42-
included_files = []
41+
guard_stack: List[int] = []
42+
included_files: List[str] = []
4343
keep_guard = True
4444

4545
"""

build/scripts/utilities.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def check_url_exists(url: str) -> bool:
4848
def get_file_name(path: str) -> str:
4949
return os.path.split(path)[1]
5050

51-
pushstack = list()
51+
pushstack: List[str] = []
5252

5353

5454
def pushdir(dirname: str) -> None:
@@ -125,4 +125,4 @@ def optional_action(step: str, action_function: Callable) -> None:
125125

126126
def ensure_directory_exists(directory: str) -> None:
127127
if not os.path.isdir(directory):
128-
os.mkdir(directory)
128+
os.mkdir(directory)

0 commit comments

Comments
 (0)