Files
typeshed/stdlib/2and3
Jelle Zijlstra d05a9d3d83 Improve enums (#3168)
I realized while working on srittau/type-stub-pep#64 that a
few things we do in existing enum definitions in typeshed are
problematic:

- Using "= ..." doesn't allow type checkers to correctly type the
  result of Enum.MEMBER.value. In fact, mypy at least infers
  .value to be "Ellipsis" if you do this.
- Properties on the enum values themselves, like HTTPStatus.phrase,
  should not be specified directly as attributes, because it makes
  type checkers think that the properties themselves are enum
  members.

I ended up doing a bit more cleanup to the signal module:
- Remove unnecessary ... initializers.
- Remove unnecessary _SIG = Signals alias.
- I don't have Windows to test, but the C code for _signal suggests
  that CTRL_C_EVENT and CTRL_BREAK events are not Signals, but just ints:
  1dbd084f1f/Modules/signalmodule.c (L1575)
2019-08-05 08:08:57 -07:00
..
2017-05-01 07:51:08 -07:00
2017-04-04 20:14:07 -07:00
2018-09-25 20:23:02 -07:00
2019-07-27 10:58:21 +02:00
2016-12-20 00:16:44 -08:00
2017-04-24 15:05:02 -07:00
2019-05-31 07:22:36 -07:00
2018-10-24 07:20:53 -07:00
2019-05-07 17:21:54 +02:00
2017-05-23 16:34:34 -07:00
2017-06-01 17:36:32 -07:00
2019-02-23 10:26:51 +01:00
2018-06-11 11:26:32 -07:00
2016-12-19 23:53:19 -08:00
2019-03-16 22:14:16 +01:00
2017-04-27 08:14:21 -07:00
2019-08-05 08:08:57 -07:00
2017-04-24 13:55:33 -07:00
2017-03-19 13:08:54 -07:00
2016-08-05 12:04:01 -07:00
2019-07-27 10:58:21 +02:00
2017-03-23 08:23:06 -07:00
2019-08-05 08:08:57 -07:00
2019-07-27 10:58:21 +02:00
2017-05-25 19:39:15 -07:00
2019-07-27 10:58:21 +02:00
2019-05-04 16:13:53 -04:00
2018-04-06 11:09:11 -07:00
2017-03-21 05:54:48 -07:00
2018-04-06 11:09:11 -07:00