[mypy] Enforcing typing for some modules (#9416)

Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
John Bodley
2020-04-04 12:45:14 -07:00
committed by GitHub
parent 1cdfb829d7
commit 5e55e09e3e
10 changed files with 39 additions and 27 deletions

View File

@@ -1224,9 +1224,10 @@ class DatasourceName(NamedTuple):
schema: str
def get_stacktrace():
def get_stacktrace() -> Optional[str]:
if current_app.config["SHOW_STACKTRACE"]:
return traceback.format_exc()
return None
def split(