mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
[mypy] Enforcing typing for some modules (#9416)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user