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 urllib.parse
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.models import HTTPError
from datahub.configuration.common import ConfigModel, OperationalError
from datahub.emitter.mce_builder import Aspect
from datahub.emitter.rest_emitter import DatahubRestEmitter
from datahub.metadata.schema_classes import (
DatasetUsageStatisticsClass,
@ -17,9 +17,6 @@ from datahub.metadata.schema_classes import (
OwnershipClass,
)
# This bound isn't tight, but it's better than nothing.
Aspect = TypeVar("Aspect", bound=DictWrapper)
logger = logging.getLogger(__name__)