Home
last modified time | relevance | path

Searched refs:_coerce (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Lib/
Dstatistics.py144 T = _coerce(int, type(start))
146 T = _coerce(T, typ) # or raise TypeError
169 def _coerce(T, S): function
/external/python/cpython3/Lib/test/
Dtest_statistics.py854 self.assertIs(statistics._coerce(T, bool), T)
856 self.assertIs(statistics._coerce(MyClass, bool), MyClass)
860 self.assertIs(statistics._coerce(A, B), B)
861 self.assertIs(statistics._coerce(B, A), B)
877 self.assertRaises(TypeError, statistics._coerce, (A, B))
878 self.assertRaises(TypeError, statistics._coerce, (B, A))
884 self.assertIs(statistics._coerce(T, T), T)
1162 return statistics._coerce(value, T)