Skip to content

Commit 80a2462

Browse files
kuarorafacebook-github-bot
authored andcommitted
Fixing initialization of dictionary in dataclass (#3749)
Summary: Pull Request resolved: #3749 same as title Reviewed By: satymish Differential Revision: D61133788 fbshipit-source-id: 5761e6347365f7701ee0600a9d895b8bd1f0a6b8
1 parent a56ee81 commit 80a2462

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

benchs/bench_fw/benchmark_io.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ def merge_rcq_itq(
4646
@dataclass
4747
class BenchmarkIO:
4848
path: str
49-
cached_ds: Dict[Any, Any] = {}
49+
50+
def __init__(self, path: str):
51+
self.path = path
52+
self.cached_ds: Dict[Any, Any] = {}
5053

5154
def clone(self):
5255
return BenchmarkIO(path=self.path)

0 commit comments

Comments
 (0)