Skip to content

Commit 3033edc

Browse files
committed
drop unnecessary parentheses usage for __reduce__
1 parent c04d759 commit 3033edc

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/pkgcraft/atom/base.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ cdef class Cpv:
180180

181181
def __reduce__(self):
182182
"""Support pickling Cpv objects."""
183-
return (self.__class__, (str(self),))
183+
return self.__class__, (str(self),)
184184

185185
# TODO: move to __del__() when migrating to >=cython-3 since it's not
186186
# supported in <cython-3 for cdef classes:

src/pkgcraft/atom/version.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ cdef class Version:
104104
return self._hash
105105

106106
def __reduce__(self):
107-
return (self.__class__, (str(self),))
107+
return self.__class__, (str(self),)
108108

109109
# TODO: move to __del__() when migrating to >=cython-3 since it's not
110110
# supported in <cython-3 for cdef classes:

src/pkgcraft/eapi.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,4 @@ cdef class Eapi(_IndirectInit):
178178
return self._hash
179179

180180
def __reduce__(self):
181-
return (eapi_from_obj, (self._id,))
181+
return eapi_from_obj, (self._id,)

0 commit comments

Comments
 (0)