mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
[mypy] Disallowing implicit optional (#9150)
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
# isort:skip_file
|
||||
"""Unit tests for Superset"""
|
||||
import json
|
||||
from typing import List
|
||||
from typing import List, Optional
|
||||
|
||||
import prison
|
||||
|
||||
@@ -42,7 +42,7 @@ class DashboardApiTests(SupersetTestCase, ApiOwnersTestCaseMixin):
|
||||
dashboard_title: str,
|
||||
slug: str,
|
||||
owners: List[int],
|
||||
slices: List[Slice] = None,
|
||||
slices: Optional[List[Slice]] = None,
|
||||
position_json: str = "",
|
||||
css: str = "",
|
||||
json_metadata: str = "",
|
||||
|
||||
Reference in New Issue
Block a user