Joshua Sundance Bailey
commited on
Commit
·
238a2a1
1
Parent(s):
f642d16
mypy strict = False
Browse files
langchain-streamlit-demo/python_coder.py
CHANGED
@@ -67,7 +67,7 @@ def check_ruff(filepath: str):
|
|
67 |
)
|
68 |
|
69 |
|
70 |
-
def check_mypy(filepath: str, strict: bool =
|
71 |
"""Run mypy on a file."""
|
72 |
cmd = f"mypy {'--strict' if strict else ''} --follow-imports={follow_imports} {filepath}"
|
73 |
|
|
|
67 |
)
|
68 |
|
69 |
|
70 |
+
def check_mypy(filepath: str, strict: bool = False, follow_imports: str = "skip"):
|
71 |
"""Run mypy on a file."""
|
72 |
cmd = f"mypy {'--strict' if strict else ''} --follow-imports={follow_imports} {filepath}"
|
73 |
|