Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal committed Jan 16, 2025
1 parent b18ffef commit 7294457
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metadata-ingestion/src/datahub/utilities/memory_footprint.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from collections import deque
from itertools import chain
from sys import getsizeof
from typing import Any
from typing import Any, Iterator


def total_size(o: Any, handlers: Any = {}) -> int:
Expand All @@ -15,7 +15,7 @@ def total_size(o: Any, handlers: Any = {}) -> int:
Based on https://github.com/ActiveState/recipe-577504-compute-mem-footprint/blob/master/recipe.py
"""

def dict_handler(d: dict) -> chain[Any]:
def dict_handler(d: dict) -> Iterator[Any]:
return chain.from_iterable(d.items())

all_handlers = {
Expand Down

0 comments on commit 7294457

Please sign in to comment.