Skip to content

Commit

Permalink
fixup! Refactor persistence handling to introduce a create_persistenc…
Browse files Browse the repository at this point in the history
…e_object function and update S3 and local file system handlers

Refactor to_dict method to use built-in dict type hinting
  • Loading branch information
fabianliebig committed Nov 20, 2024
1 parent 04aaca3 commit 6ef448e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmarks/serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import json
from datetime import datetime, timedelta
from typing import Any, Dict
from typing import Any

import cattrs
import pandas as pd
Expand Down Expand Up @@ -34,7 +34,7 @@
class Serializable:
"""Decorator to add serialization methods to a class."""

def to_dict(self) -> Dict[str, Any]:
def to_dict(self) -> dict[str, Any]:
"""Create an object's dictionary representation."""
return benchmarking_converter.unstructure(self)

Expand Down

0 comments on commit 6ef448e

Please sign in to comment.