Skip to content

Commit

Permalink
import flytekit logger instead of instantiating our own
Browse files Browse the repository at this point in the history
Signed-off-by: mg515 <[email protected]>
  • Loading branch information
mg515 committed Jul 30, 2024
1 parent 40af6f3 commit 9c6db69
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import importlib
import logging
import re
import typing
from typing import Type, TypeVar
Expand All @@ -15,12 +14,11 @@
from flytekit import FlyteContext
from flytekit.core.type_engine import TypeTransformerFailedError
from flytekit.extend import TypeEngine, TypeTransformer
from flytekit.loggers import logger
from flytekit.models.literals import Literal, Scalar
from flytekit.models.types import LiteralType, SimpleType
from omegaconf import DictConfig, OmegaConf

logger = logging.getLogger("flytekit")

T = TypeVar("T")
NoneType = type(None)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import importlib
import logging
from typing import Optional, Type, TypeVar

from flyteidl.core.literals_pb2 import Literal as PB_Literal
Expand All @@ -17,7 +16,6 @@
from omegaconf import ListConfig, OmegaConf

T = TypeVar("T")
logger = logging.getLogger("flytekit")


class ListConfigTransformer(TypeTransformer[ListConfig]):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import dataclasses
import logging
import typing
from collections import ChainMap

from dataclasses_json import DataClassJsonMixin

from flytekit.loggers import logger
from omegaconf import DictConfig, ListConfig, OmegaConf

logger = logging.getLogger("flytekit")

NoneType = type(None)


Expand Down

0 comments on commit 9c6db69

Please sign in to comment.