fix(sdk): remove rest emitter to graph cache in CorpGroup (#7743)

This commit is contained in:
Tim 2023-04-04 19:32:15 +02:00 committed by GitHub
parent f860ce95c0
commit 23e57fffa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,6 @@ from __future__ import annotations
import logging
from dataclasses import dataclass
from functools import lru_cache
from typing import TYPE_CHECKING, Callable, Iterable, List, Optional, Union
import pydantic
@ -192,9 +191,9 @@ class CorpGroup(BaseModel):
entityUrn=urn, aspect=StatusClass(removed=False)
)
@lru_cache(maxsize=32)
@staticmethod
def _datahub_graph_from_datahub_rest_emitter(
self, rest_emitter: DatahubRestEmitter
rest_emitter: DatahubRestEmitter,
) -> DataHubGraph:
"""
Create a datahub graph instance from a REST Emitter.