Files
typeshed/stdlib/2.7
Michael Lee 748428d8a4 Refine stubs for Python 2's decimal module (#545)
* Refine stubs for Python 2's decimal module

The decimal module for Python 2 was relatively incomplete, unlike the
decimal module for Python 3. This commit copies the relevant type
signatures from Python 3's decimal module to Python 2's.

There was a lot of code in both stubs and it wasn't clear to me if it
was safe to merge the two modules together, so I refrained from doing
so.

* Allow comparisions with Decimals and Floats

This commit loosens the types for Decimals to allow comparisons like
`Decimal('3.14') < 4.2`. Previously, you could compare decimals with
only other decimals or ints.
2016-09-14 09:40:14 -07:00
..
2016-08-03 15:38:15 -07:00
2016-04-17 19:02:55 -07:00
2016-04-17 19:02:55 -07:00
2016-07-26 07:45:27 -07:00
2016-05-18 15:30:24 -07:00
2016-05-04 16:54:57 -07:00
2016-03-11 16:01:30 -08:00
2016-05-04 16:54:57 -07:00
2016-03-15 19:49:19 +01:00
2016-08-16 08:07:00 -07:00
2016-01-16 16:54:47 -05:00
2016-03-06 09:25:49 +09:00
2016-04-17 19:02:55 -07:00
2016-03-17 09:19:31 -07:00
2016-04-08 11:59:34 -07:00
2016-08-04 15:40:12 -07:00
2016-09-13 11:48:50 -07:00
2016-04-17 19:02:55 -07:00
2016-04-08 11:49:14 -07:00
2016-05-04 16:54:57 -07:00
2016-04-17 19:02:55 -07:00
2016-04-17 19:02:55 -07:00
2016-04-17 19:02:55 -07:00
2016-02-25 09:41:32 +00:00
2016-05-04 16:54:57 -07:00
2016-01-26 20:01:34 -08:00
2016-03-06 10:03:55 +09:00