Skip to content

Commit

Permalink
fix typing Annotated
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicBboy committed Jul 9, 2023
1 parent 90093cc commit a8b3a19
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
1 change: 1 addition & 0 deletions scipy-2023/requirements-ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ grpcio==1.51.3
palmerpenguins
pandas
scikit-learn
typing_extensions
1 change: 1 addition & 0 deletions scipy-2023/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ pandas
pyspark<3.4.0
scikit-learn
torch --index-url https://download.pytorch.org/whl/cpu
typing_extensions
wheel
whylogs
6 changes: 5 additions & 1 deletion scipy-2023/workflows/example_03_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import os
from dataclasses import dataclass
from typing import Annotated

import pandas as pd
import pyspark.sql
Expand All @@ -20,6 +19,11 @@

from workflows.example_00_intro import FEATURES, TARGET

try:
from typing import Annotated
except ImportError:
from typing_extensions import Annotated


@dataclass_json
@dataclass
Expand Down
7 changes: 6 additions & 1 deletion scipy-2023/workflows/example_07_caching.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Recoverability: Caching for compute efficiency."""

from dataclasses import asdict
from typing import Annotated, List, Tuple
from typing import List, Tuple

import numpy as np
import pandas as pd
Expand All @@ -12,6 +12,11 @@

from flytekit import task, workflow, dynamic, HashMethod, Resources

try:
from typing import Annotated
except ImportError:
from typing_extensions import Annotated


from workflows.example_06_reproducibility import (
get_data,
Expand Down
13 changes: 6 additions & 7 deletions scipy-2023/workflows/example_10_flyte_decks.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
"""Auditability: Flyte Decks for Pipeline visibility."""

from typing import Annotated

import pandas as pd
from palmerpenguins import load_penguins

try:
from typing import Annotated
except ImportError:
from typing_extensions import Annotated

from workflows.example_00_intro import FEATURES, TARGET

import whylogs as why
from flytekit import task, workflow, Deck, Resources
from flytekitplugins.deck import FrameProfilingRenderer
from flytekitplugins.whylogs.renderer import (
WhylogsConstraintsRenderer,
WhylogsSummaryDriftRenderer,
)
from flytekitplugins.whylogs.schema import WhylogsDatasetProfileTransformer
from flytekitplugins.whylogs.renderer import WhylogsConstraintsRenderer
from whylogs.core import DatasetProfileView
from whylogs.core.constraints import ConstraintsBuilder
from whylogs.core.constraints.factories import (
Expand Down

0 comments on commit a8b3a19

Please sign in to comment.