Files
typeshed/stdlib/3
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-04-11 00:27:58 -04:00
2016-07-29 05:59:26 -07:00
2016-08-03 15:40:00 -07:00
2016-06-02 10:16:01 -07:00
2016-04-11 00:27:58 -04:00
2016-07-26 07:45:27 -07:00
2016-05-05 11:32:06 +01:00
2016-04-11 00:27:58 -04:00
2016-04-11 00:27:58 -04:00
2016-05-04 16:54:57 -07:00
2016-08-17 11:54:13 -07:00
2016-03-23 08:30:39 +01:00
2016-03-06 09:25:49 +09:00
2016-05-17 14:32:03 +01:00
2016-05-19 14:34:38 -07:00
2016-04-11 00:27:58 -04:00
2016-08-23 16:24:16 -07:00
2016-07-05 10:18:58 -07:00
2016-05-03 11:48:38 -07:00
2016-08-24 06:08:46 -07:00
2016-07-26 07:43:29 -07:00
2016-04-11 00:27:58 -04:00
2016-02-25 09:41:32 +00:00
2015-12-30 21:59:56 +01:00
2016-09-12 11:13:42 -07:00
2016-04-17 19:59:47 -07:00
2016-05-04 16:54:57 -07:00
2016-03-06 10:03:55 +09:00