Skip to content

Commit

Permalink
Fixing initialization of dictionary in dataclass (#3749)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #3749

same as title

Reviewed By: satymish

Differential Revision: D61133788

fbshipit-source-id: 5761e6347365f7701ee0600a9d895b8bd1f0a6b8
  • Loading branch information
kuarora authored and facebook-github-bot committed Aug 13, 2024
1 parent a56ee81 commit 80a2462
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion benchs/bench_fw/benchmark_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ def merge_rcq_itq(
@dataclass
class BenchmarkIO:
path: str
cached_ds: Dict[Any, Any] = {}

def __init__(self, path: str):
self.path = path
self.cached_ds: Dict[Any, Any] = {}

def clone(self):
return BenchmarkIO(path=self.path)
Expand Down

0 comments on commit 80a2462

Please sign in to comment.