Skip to content

Commit

Permalink
Updated typing for transformation model
Browse files Browse the repository at this point in the history
  • Loading branch information
punith300i committed Nov 14, 2023
1 parent e538629 commit 80d516f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sand/models/transformation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import annotations
from typing import List, Union, Literal
from typing import Literal
from peewee import (
CharField,
ForeignKeyField,
Expand All @@ -17,8 +17,8 @@ class Transformation(BaseModel):
name = CharField()
table = ForeignKeyField(Table, backref="transformations", on_delete="CASCADE")
mode = CharField()
datapath: Union[List[str], str] = JSONField() # type: ignore
outputpath: List[str] = JSONField() # type: ignore
datapath: list[str] | str = JSONField() # type: ignore
outputpath: list[str] = JSONField() # type: ignore
type = CharField()
code = TextField()
on_error: Literal[
Expand Down

0 comments on commit 80d516f

Please sign in to comment.