Skip to content

Commit

Permalink
Uses Union instead of pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina committed Aug 6, 2024
1 parent 2bd9015 commit 9c70fcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/migrations/shared/catalogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import logging
from datetime import datetime
from typing import Any, Type
from typing import Any, Type, Union

import sqlalchemy as sa
from alembic import op
Expand Down Expand Up @@ -95,7 +95,7 @@ class Slice(Base):
schema_perm = sa.Column(sa.String(1000))


ModelType = Type[Query] | Type[SavedQuery] | Type[TabState] | Type[TableSchema]
ModelType = Union[Type[Query], Type[SavedQuery], Type[TabState], Type[TableSchema]]

BATCH_SIZE = 10000

Expand Down

0 comments on commit 9c70fcd

Please sign in to comment.