mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore(pre-commit): Add pyupgrade and pycln hooks (#24197)
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
from enum import Enum
|
||||
from typing import Set
|
||||
|
||||
|
||||
class ChartDataResultFormat(str, Enum):
|
||||
@@ -28,7 +27,7 @@ class ChartDataResultFormat(str, Enum):
|
||||
XLSX = "xlsx"
|
||||
|
||||
@classmethod
|
||||
def table_like(cls) -> Set["ChartDataResultFormat"]:
|
||||
def table_like(cls) -> set["ChartDataResultFormat"]:
|
||||
return {cls.CSV} | {cls.XLSX}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user