@@ -115,11 +115,11 @@ def union_hook(data, type_):
115115 for i in range (count ):
116116 jsons [i ] = to_json (objects [i ])
117117
118- strs : list [bytes ] = [None for _ in range (count )] # type: ignore
118+ strs : list [bytes ] = [None for _ in range (count )] # type: ignore[misc]
119119 with profile (test_name + ':json_dump' ), timer (f'json dump { count } objects of type { Type } ' ):
120120 for i in range (count ):
121121 # TODO any orjson options to speed up?
122- strs [i ] = orjson .dumps (jsons [i ]) # pylint: disable=no-member
122+ strs [i ] = orjson .dumps (jsons [i ])
123123
124124 db = Path ('/tmp/cachew_test/db.sqlite' )
125125 if db .parent .exists ():
@@ -132,7 +132,7 @@ def union_hook(data, type_):
132132 conn .executemany ('INSERT INTO data (value) VALUES (?)' , [(s ,) for s in strs ])
133133 conn .close ()
134134
135- strs2 : list [bytes ] = [None for _ in range (count )] # type: ignore
135+ strs2 : list [bytes ] = [None for _ in range (count )] # type: ignore[misc]
136136 with profile (test_name + ':sqlite_load' ), timer (f'sqlite load { count } objects of type { Type } ' ):
137137 with sqlite3 .connect (db ) as conn :
138138 i = 0
@@ -148,7 +148,7 @@ def union_hook(data, type_):
148148 for s in strs :
149149 fw .write (s + b'\n ' )
150150
151- strs3 : list [bytes ] = [None for _ in range (count )] # type: ignore
151+ strs3 : list [bytes ] = [None for _ in range (count )] # type: ignore[misc]
152152 with profile (test_name + ':jsonl_load' ), timer (f'jsonl load { count } objects of type { Type } ' ):
153153 i = 0
154154 with cache .open ('rb' ) as fr :
@@ -163,7 +163,7 @@ def union_hook(data, type_):
163163 with profile (test_name + ':json_load' ), timer (f'json load { count } objects of type { Type } ' ):
164164 for i in range (count ):
165165 # TODO any orjson options to speed up?
166- jsons2 [i ] = orjson .loads (strs2 [i ]) # pylint: disable=no-member
166+ jsons2 [i ] = orjson .loads (strs2 [i ])
167167
168168 objects2 = [None for _ in range (count )]
169169 with profile (test_name + ':deserialize' ), timer (f'deserializing { count } objects of type { Type } ' ):
0 commit comments