Skip to content

Commit b24abb3

Browse files
committed
Add real,imag to fake numpy namespace abc.
1 parent 5ed2868 commit b24abb3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arraycontext/fake_numpy.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,10 @@ def logaddexp(self, a: ArrayOrContainerOrScalarT, /
413413
) -> ArrayOrContainerOrScalarT: ...
414414
def logaddexp2(self, a: ArrayOrContainerOrScalarT, /
415415
) -> ArrayOrContainerOrScalarT: ...
416+
def real(self, a: ArrayOrContainerOrScalarT, /,
417+
) -> ArrayOrContainerOrScalarT: ...
418+
def imag(self, a: ArrayOrContainerOrScalarT, /,
419+
) -> ArrayOrContainerOrScalarT: ...
416420
# {{{ binary/ternary ufuncs
417421

418422
# FIXME: These are more restrictive than necessary, but they'll do the job

0 commit comments

Comments
 (0)