Skip to content

Commit 10efd7a

Browse files
committed
remove global from __reduce__ methods
not actually necessary per linters
1 parent 0890a55 commit 10efd7a

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

mkl_random/interfaces/_numpy_random.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ def set_state(self, state):
106106

107107
# pickling support
108108
def __reduce__(self):
109-
global __NPRandomState_ctor
110109
return (__NPRandomState_ctor, (), self.get_state())
111110

112111
def random_sample(self, size=None):

mkl_random/mklrand.pyx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5603,7 +5603,6 @@ cdef class MKLRandomState(_MKLRandomState):
56035603

56045604
# pickling support
56055605
def __reduce__(self):
5606-
global __MKLRandomState_ctor
56075606
return (__MKLRandomState_ctor, (), self.get_state())
56085607

56095608
def leapfrog(self, int k, int nstreams):
@@ -5969,7 +5968,6 @@ class RandomState(MKLRandomState):
59695968

59705969
# pickling support
59715970
def __reduce__(self):
5972-
global __RandomState_ctor
59735971
return (__RandomState_ctor, (), self.get_state())
59745972

59755973

0 commit comments

Comments
 (0)