Skip to content

Commit 7cea477

Browse files
committed
appease linter
1 parent d8b9cec commit 7cea477

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/array_api_extra/_lib/_utils/_helpers.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,9 @@ class Pickler(pickle.Pickler): # numpydoc ignore=GL08
418418
"""
419419

420420
@override
421-
def persistent_id(self, obj: object) -> Literal[0, 1, None]: # pyright: ignore[reportIncompatibleMethodOverride] # numpydoc ignore=GL08
421+
def persistent_id(
422+
self, obj: object
423+
) -> Literal[0, 1, None]: # numpydoc ignore=GL08
422424
if isinstance(obj, cls):
423425
instances.append(obj) # type: ignore[arg-type]
424426
return 0
@@ -483,7 +485,7 @@ class Unpickler(pickle.Unpickler): # numpydoc ignore=GL08
483485
"""Mirror of the overridden Pickler in pickle_flatten."""
484486

485487
@override
486-
def persistent_load(self, pid: Literal[0, 1]) -> object: # pyright: ignore[reportIncompatibleMethodOverride] # numpydoc ignore=GL08
488+
def persistent_load(self, pid: Literal[0, 1]) -> object: # numpydoc ignore=GL08
487489
try:
488490
return next(iters[pid])
489491
except StopIteration as e:

0 commit comments

Comments
 (0)