Skip to content

Commit 4749212

Browse files
committed
Fix type check warnings
1 parent 23213d1 commit 4749212

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/reactpy/pyscript/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
_logger = getLogger(__name__)
2727

2828

29-
def minify_python(source: str):
29+
def minify_python(source: str) -> str:
3030
"""Minify Python source code."""
3131
# Remove comments
3232
source = re.sub(r"#.*\n", "\n", source)
@@ -231,6 +231,6 @@ def cached_pip_index_versions(package_name: str) -> subprocess.CompletedProcess[
231231

232232

233233
@functools.cache
234-
def cached_file_read(file_path: str, minifiy=True) -> str:
234+
def cached_file_read(file_path: str, minifiy: bool = True) -> str:
235235
content = Path(file_path).read_text(encoding="utf-8").strip()
236236
return minify_python(content) if minifiy else content

0 commit comments

Comments
 (0)