/external/fonttools/Lib/fontTools/misc/ |
D | vector.py | 79 def __round__(self, *, round=round): member in Vector 120 return self.__round__()
|
/external/python/cpython3/Doc/library/ |
D | fractions.rst | 169 .. method:: __round__() 170 __round__(ndigits)
|
D | typing.rst | 1553 An ABC with one abstract method ``__round__``
|
D | functions.rst | 1465 ``number.__round__``.
|
D | unittest.mock.rst | 2013 * ``__round__``, ``__floor__``, ``__trunc__`` and ``__ceil__``
|
/external/python/cpython3/Lib/ |
D | numbers.py | 189 def __round__(self, ndigits=None): member in Real
|
D | fractions.py | 505 def __round__(self, ndigits=None): member in Fraction
|
D | typing.py | 1789 def __round__(self, ndigits: int = 0) -> T_co: member in SupportsRound
|
D | _pydecimal.py | 1830 def __round__(self, n=None): member in Decimal
|
/external/python/cpython3/Lib/unittest/test/testmock/ |
D | testmagicmethods.py | 284 self.assertEqual(round(mock), mock.__round__()) 310 self.assertEqual(round(mock), mock.__round__())
|
/external/python/cpython3/Lib/test/ |
D | test_decimal.py | 4462 self.assertEqual(str(Decimal("9.99").__round__()), "10") 4463 self.assertEqual(str(Decimal("9.99e-5").__round__()), "0") 4464 self.assertEqual(str(Decimal("1.23456789").__round__(5)), "1.23457") 4465 self.assertEqual(str(Decimal("1.2345").__round__(10)), "1.2345000000") 4466 self.assertEqual(str(Decimal("1.2345").__round__(-10)), "0E+10") 4468 self.assertRaises(TypeError, Decimal("1.23").__round__, "5") 4469 self.assertRaises(TypeError, Decimal("1.23").__round__, 5, 8) 5023 self.assertRaises(InvalidOperation, Decimal("1.23").__round__, 5025 self.assertRaises(InvalidOperation, Decimal("1.23").__round__, 5027 self.assertRaises(InvalidOperation, Decimal("1").__round__, [all …]
|
D | test_builtin.py | 1408 def __round__(self): member in BuiltinTest.test_round.TestRound 1420 t.__round__ = lambda *args: args
|
/external/python/mock/ |
D | CHANGELOG.rst | 58 ``__round__`` magic method.
|
/external/python/mock/mock/tests/ |
D | testmagicmethods.py | 341 self.assertEqual(round(mock), mock.__round__())
|
/external/python/pyasn1/pyasn1/type/ |
D | univ.py | 221 def __round__(self, n=0): member in Integer 1489 def __round__(self, n=0): member in Real
|
/external/fonttools/Lib/fontTools/varLib/ |
D | __init__.py | 257 deltas = model.getDeltas(allCoords, round=partial(GlyphCoordinates.__round__, round=round))
|
/external/protobuf/python/google/protobuf/internal/ |
D | test_util.py | 864 def __round__(self): member in NonStandardInteger
|
/external/python/cpython3/Modules/_decimal/tests/ |
D | deccheck.py | 555 def __round__(self, t): member in SkipHandler
|
/external/python/cpython3/Python/ |
D | bltinmodule.c | 15 _Py_IDENTIFIER(__round__);
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | _g_l_y_f.py | 1629 def __round__(self, *, round=otRound): member in GlyphCoordinates
|
/external/python/pyasn1/ |
D | CHANGES.rst | 402 (e.g. __pos__, __neg__, __round__, __floor__, __ceil__, __trunc__)
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.0.rst | 816 delegates to ``x.__round__([n])`` instead of always returning a
|
/external/python/cpython3/Tools/c-analyzer/ |
D | TODO | 502 Python/bltinmodule.c:PyId___round__ _Py_IDENTIFIER(__round__)
|
D | known.tsv | 1349 Python/bltinmodule.c - PyId___round__ variable _Py_IDENTIFIER(__round__)
|
/external/python/cpython3/Doc/reference/ |
D | datamodel.rst | 2497 .. method:: object.__round__(self, [,ndigits]) 2506 Unless *ndigits* is passed to :meth:`!__round__` all these methods should
|