Commit Graph
29 Commits
Author SHA1 Message Date
Valérian RoussetandMatthias Kramm 557579da36 merge py2 and py3 errno (#413) 2016-07-28 06:15:22 -07:00
Guido van RossumandGitHub 39325bf159 Mypy now supports sys.platform and sys.version_info checks (#410) 2016-07-27 13:25:29 -07:00
Valérian RoussetandGuido van Rossum cd413c502c Add hmac (#402) 2016-07-26 08:40:04 -07:00
Valérian RoussetandGuido van Rossum 56760eda52 Improve iterators (#405)
Mainly reorder the stub, adding some missing method and having some other being version dependent.

I've also, in 30f395e, specialized some function, specifying it for Sequence and Mapping, which is not strictly correct (because any class having `__getitem__` should get accepted) but is way more useful that simply having Any.
2016-07-26 07:41:08 -07:00
jdelicandGuido van Rossum ba69b32d06 argparse stub fix: parse_known_args takes an optional sequence of strings like parse_args(), not an optional string (#386)
* parse_known_args takes an optional sequence of strings like parse_args, not an optional string
2016-07-22 14:39:56 -07:00
jdelicandGuido van Rossum 791966a65a argparse stub fix: allow subclasses of Action in add_argument(action=...) (#385)
The action was incorrectly typed as allowing instances of Action -- the correct type is subclasses of Action. (And str.)
2016-07-22 14:38:24 -07:00
jdelicandGuido van Rossum 05cd6ec5fa List should probably be Sequence (#387) 2016-07-22 13:19:49 -07:00
jdelicandMatthias Kramm 4f7c9ce432 argparse stub fix: values parameter of Action can also be str and None (#388)
* values can be a str, too

* values should probably use Sequence
2016-07-22 10:58:59 -07:00
alvarocaceresandMatthias Kramm f7b35bc8be Remove line continuations to help pytype parse (#390) 2016-07-22 10:55:42 -07:00
Valérian RoussetandGuido van Rossum 0863590721 add site (#389) 2016-07-22 07:38:17 -07:00
Fabian Heredia MontielandMatthias Kramm d787dbe984 Add conditional floor for Python 3.x (#380) 2016-07-21 11:08:21 -07:00
alvarocaceresandMatthias Kramm ac5916c170 Tweak version tests to help pytype parse them (#374) 2016-07-19 07:43:35 -07:00
Valérian RoussetandGuido van Rossum 61f232c7d8 add py3 version to zipimport (#305) 2016-07-17 21:05:05 -07:00
Valérian RoussetandMatthias Kramm 8ef221c162 add zipfile for py2 (#345) 2016-07-15 05:55:20 -07:00
Jukka LehtosaloandGuido van Rossum e05edb60f1 Mypy stub fixes for strict optional mode (#366) 2016-07-13 09:38:40 -07:00
Guido van RossumandMatthias Kramm 53d126f4d4 More fixes for argparse. (#362) 2016-07-13 07:51:29 -07:00
Guido van RossumandDavid Fisher b63e09c239 Fix some issues for dateutil and argparse (#357)
* Fix stubs for 2.7/dateutil. They were pretty broken.

(The 3/dateutil share some of the brokenness but that's still a TODO.)

* Fix argparse stubs.

- Container is not strong enough for choices.
- add_subparsers() returns something with an add_parser() method.
2016-07-12 16:24:33 -07:00
tharvik 87235ad72b merge py2 and py3 argparse 2016-07-11 15:23:51 +02:00
Valérian RoussetandGuido van Rossum 3eedf73a3a Add types to stub for warnings module. (#342) 2016-07-06 09:58:49 -07:00
Guido van Rossum 8ee3123e02 Fix log() signatures; change msg: str to msg: Text. 2016-06-05 17:25:56 -07:00
Guido van Rossum d75e2ab224 Add logging.WARN; TextIO -> IO[str]. 2016-06-05 17:10:15 -07:00
Valérian RoussetandGuido van Rossum a581397c42 add types to logging (#247) 2016-06-04 19:20:15 -07:00
Jukka LehtosaloandGuido van Rossum 292447bd62 Misc stub fixes (#181) 2016-05-04 16:54:57 -07:00
Michael LeeandGuido van Rossum ce59cd4056 Add missing 3.3+ and 3.5+ math functions (#164)
Python 3.3 added the `math.log2` function; Python 3.5 added
`math.gcd`, `math.inf`, `math.isclose`, and `math.nan`.
2016-04-25 21:40:40 -07:00
Jakub Stasiak 7535d41471 Add a very basic bz2 stub 2016-04-13 11:44:43 +02:00
Matthias Kramm 5f76369093 Move warnings.pyi into 2and3/. 2016-04-08 14:43:43 -07:00
Ismail 8f2e1ac885 Only define Chrome class on py2.7 or >3.2 2016-02-01 10:02:54 +00:00
Ismail b6dfeebe1e Move webbrowser.pyi to 2and3 folder 2016-02-01 10:00:53 +00:00
Guido van Rossum 8c2118bace Move contents of builtins/* to stdlib/*. This simplifies finding stubs. 2016-01-12 12:53:18 -08:00