Commit Graph

5 Commits

Author SHA1 Message Date
Guido van Rossum
6e596e9609 Fix decimal and contextlib (#428)
* Decimal does not support __round__, and its __abs__ returns Decimal.

* Fix contextmanager signature too.
2016-08-02 07:39:13 -07:00
Guido van Rossum
781b079f91 Add Supports{Abs,Float,Int,Round} as base classes for Decimal. (#415) 2016-07-28 15:13:27 -07:00
Alvaro Caceres
6701a10e93 Add 2.7/decimal.pyi generated by stubgen (#414)
* add decimaly.pyi

generated with
 stubgen --py2 decimal

* Strip out private stuff

* pytype compatibility

* fixes
2016-07-28 11:09:48 -07:00
Guido van Rossum
6a496215e7 Revert "Merge pull request #95 from youtux/feature/decimal-2.7"
This broke our build.

This reverts commit 0a496917e3, reversing
changes made to c8630a238d.
2016-03-08 10:38:45 -08:00
Alessio Bogon
00779c9564 stub for decimal, 2.7 only 2016-02-26 20:49:50 +01:00