From 7dcd3848cd5ec3339d650f21f00fd5e10ea522aa Mon Sep 17 00:00:00 2001 From: warren Date: Tue, 5 Jul 2022 15:07:00 -0400 Subject: MAINT: random: Annotate default_rng with cython.embedsignature Closes gh-21910 --- numpy/random/_generator.pyx | 1 + 1 file changed, 1 insertion(+) (limited to 'numpy/random') diff --git a/numpy/random/_generator.pyx b/numpy/random/_generator.pyx index 8092c8e7a..5153c3827 100644 --- a/numpy/random/_generator.pyx +++ b/numpy/random/_generator.pyx @@ -4772,6 +4772,7 @@ cdef class Generator: return arr[tuple(slices)] +@cython.embedsignature(True) def default_rng(seed=None): """Construct a new Generator with the default BitGenerator (PCG64). -- cgit v1.2.1