refactor(ingestion): remove duplicate aspect type (#3972)

This commit is contained in:
Harshal Sheth 2022-01-25 22:05:14 -05:00 committed by GitHub
parent 5c5dd5bfee
commit 5168f0a50e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,13 +2,13 @@ import json
import logging import logging
import urllib.parse import urllib.parse
from json.decoder import JSONDecodeError from json.decoder import JSONDecodeError
from typing import Any, Dict, List, Optional, Type, TypeVar from typing import Any, Dict, List, Optional, Type
from avrogen.dict_wrapper import DictWrapper
from requests.adapters import Response from requests.adapters import Response
from requests.models import HTTPError from requests.models import HTTPError
from datahub.configuration.common import ConfigModel, OperationalError from datahub.configuration.common import ConfigModel, OperationalError
from datahub.emitter.mce_builder import Aspect
from datahub.emitter.rest_emitter import DatahubRestEmitter from datahub.emitter.rest_emitter import DatahubRestEmitter
from datahub.metadata.schema_classes import ( from datahub.metadata.schema_classes import (
DatasetUsageStatisticsClass, DatasetUsageStatisticsClass,
@ -17,9 +17,6 @@ from datahub.metadata.schema_classes import (
OwnershipClass, OwnershipClass,
) )
# This bound isn't tight, but it's better than nothing.
Aspect = TypeVar("Aspect", bound=DictWrapper)
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)