MCPcopy Index your code
hub / github.com/RustPython/RustPython / conjugate

Method conjugate

Lib/numbers.py:285–287  ·  view source on GitHub ↗

Conjugate is a no-op for Reals.

(self)

Source from the content-addressed store, hash-verified

283 return 0
284
285 def conjugate(self):
286 """Conjugate is a no-op for Reals."""
287 return +self
288
289Real.register(float)
290

Callers 9

test_conjugateMethod · 0.45
test_intMethod · 0.45
test_floatMethod · 0.45
test_realMethod · 0.45
builtin_float.pyFile · 0.45
builtin_complex.pyFile · 0.45
syntax_class.pyFile · 0.45
builtin_bool.pyFile · 0.45
builtin_type.pyFile · 0.45

Calls

no outgoing calls

Tested by 4

test_conjugateMethod · 0.36
test_intMethod · 0.36
test_floatMethod · 0.36
test_realMethod · 0.36