Commit Graph

  • c2555b3119 Port stub for os.walk from python 3 to 2 and cleanup comment. Tim Abbott 2016-01-25 17:29:10 -08:00
  • c17d0120a9 Add stubs for traceback.format_exception. Tim Abbott 2016-01-25 18:05:53 -08:00
  • 55830ec190 Fix type for py2 traceback.format_exc and add to python 3. Tim Abbott 2016-01-25 16:43:48 -08:00
  • 2011e178a6 Merge pull request #60 from mihneagiurgea/fix-concurrent-futures Guido van Rossum 2016-01-26 12:15:36 -08:00
  • 050143f2b1 Fix stubs for concurrent.futures Mihnea Giurgea 2016-01-26 11:46:47 -08:00
  • 6a47ac7116 Fix min()/max() overloading with key= parameter. Fixes #1150. Guido van Rossum 2016-01-25 18:09:18 -08:00
  • a1fe083133 Fix class file so it can be used as "with file(...) as f: f.read() # etc." Guido van Rossum 2016-01-25 17:01:34 -08:00
  • 958a8e5f45 Merge pull request #57 from timabbott/tabbott-stubs Guido van Rossum 2016-01-25 16:39:08 -08:00
  • ddc33a3c7c Add missing stub for os.exit on python 2. Tim Abbott 2016-01-25 16:20:47 -08:00
  • b180914208 Fix os.wait and os.waitpid annotations on python 2. Tim Abbott 2016-01-25 16:19:29 -08:00
  • 17d8f20fd5 Add message attribute to class BaseException. Guido van Rossum 2016-01-25 16:32:47 -08:00
  • 69169765a7 Merge pull request #55 from timabbott/tabbott-re Matthias Kramm 2016-01-25 12:44:14 -08:00
  • 21c90d52b9 Fix re module constant stubs for 2.7. Tim Abbott 2016-01-25 12:29:21 -08:00
  • cf82278301 Use plain bytes instead of ByteString in 3/builtins.pyi. Guido van Rossum 2016-01-25 08:12:46 -08:00
  • 23adcaf4f4 Merge pull request #54 from ismail-s/patch-1 Matthias Kramm 2016-01-25 08:06:59 -08:00
  • fd4d063bb4 Implement fromhex and maketrans method Ismail 2016-01-25 15:43:06 +00:00
  • 2c4549fb36 Merge pull request #51 from DanielShaulov/threading Guido van Rossum 2016-01-23 09:10:24 -08:00
  • e2c9ec5cb0 Merge branch 'master' into threading Daniel Shaulov 2016-01-23 10:34:30 +00:00
  • c957fc9f17 Merge pull request #53 from timabbott/mutable Matthias Kramm 2016-01-22 21:33:01 -08:00
  • c0d0f7fe14 Fix os.environ improperly classified as not mutable for python 2. Tim Abbott 2016-01-22 17:42:45 -08:00
  • 25a3fac0fd Fix default parameter syntax. Matthias Kramm 2016-01-22 16:39:15 -08:00
  • 14ffe7ea17 Inherit from Any in threading.local and SimpleNamespace Daniel Shaulov 2016-01-22 12:24:36 +02:00
  • c83f4b57c7 Merge pull request #49 from ddfisher/master Guido van Rossum 2016-01-19 17:23:47 -08:00
  • 1a10134d54 Fix up uses of Future as an argument in asyncio David Fisher 2016-01-19 16:49:48 -08:00
  • 7c8797441b Make Generator __iter__ method return itself David Fisher 2016-01-19 16:49:20 -08:00
  • a080d6cee5 Make Future stub resemble reality better. Guido van Rossum 2016-01-19 14:23:09 -08:00
  • 740568ed25 Use NamedTuple for inspect.ArgSpec and .FullArgSpec. Guido van Rossum 2016-01-18 16:50:00 -08:00
  • f1beef02e7 Replace some unicode argument defaults with ... (the type checker does not care about the value). Guido van Rossum 2016-01-18 16:44:44 -08:00
  • 2d82816e14 Add Iterable base class to csv.DictReader. Fixes #47. Guido van Rossum 2016-01-18 16:39:08 -08:00
  • c0377b6753 Merge pull request #45 from bdarnell/updates Guido van Rossum 2016-01-16 14:13:59 -08:00
  • 1626c25087 Add some third_party modules. Ben Darnell 2016-01-16 16:56:25 -05:00
  • b7b7da1a85 Stubgen some more stdlib modules. Ben Darnell 2016-01-16 16:54:47 -05:00
  • 3a674645a5 Assorted fixes to stubs Ben Darnell 2016-01-16 16:52:01 -05:00
  • 01d96e4ac4 Fix signatures of __init__ for Thread and Timer Daniel Shaulov 2016-01-16 00:21:24 +02:00
  • 43fcb6c185 Merge pull request #44 from DanielShaulov/patch-1 Guido van Rossum 2016-01-15 08:29:56 -08:00
  • 723ed4f98f Add timer class to threading.pyi DanielShaulov 2016-01-15 18:13:22 +02:00
  • 5463335be2 Make deque inherit from MutableMapping (with difficulty). Fixes #43. Guido van Rossum 2016-01-14 09:14:38 -08:00
  • 71d15d6943 Remove outdated things from README. Guido van Rossum 2016-01-13 20:15:16 -08:00
  • d98f4a585b Merge pull request #42 from python/move Guido van Rossum 2016-01-12 14:14:00 -08:00
  • 8c2118bace Move contents of builtins/* to stdlib/*. This simplifies finding stubs. Guido van Rossum 2016-01-12 12:53:18 -08:00
  • 0938e8f5de Add flush keyword arg to print() (even though 3.2 does not support it). Guido van Rossum 2016-01-12 11:18:20 -08:00
  • 8539624f05 Fix Reversible.__reversed__() return type. (I should do more testing.) Guido van Rossum 2016-01-11 16:04:44 -08:00
  • 1c02f14dc1 Make Reversible covariant. Fixes #19. (Though it does not seem to be *necessary*.) Guido van Rossum 2016-01-11 15:32:43 -08:00
  • 0673b7bab9 Add Generator to 2.7/typing.pyi. Fixes #29. Guido van Rossum 2016-01-11 15:26:22 -08:00
  • 605c189f29 Merge pull request #39 from rmcgibbo/json Guido van Rossum 2016-01-11 13:49:24 -08:00
  • dfd7ceecd8 Add type annotations for json.load(s) Robert T. McGibbon 2016-01-11 13:20:59 -08:00
  • e463890df7 2.7 does not have lru_cache(). Guido van Rossum 2016-01-11 08:14:11 -08:00
  • 129bf57659 Merge pull request #40 from rmcgibbo/lru_cache Matthias Kramm 2016-01-11 05:55:32 -08:00
  • a40418ed7b Enhance type information for lru_cache Robert T. McGibbon 2016-01-11 01:16:10 -08:00
  • 0735ec0251 Add keyword args to stdlib's json.pyi Robert T. McGibbon 2016-01-10 23:30:10 -08:00
  • 87bc00eb2a Unify 2.7 and 3 stubs for functools. Guido van Rossum 2016-01-08 10:10:50 -08:00
  • 42da4e56f9 Have ast.pyi re-export symbols from _ast.pyi. Matthias Kramm 2016-01-08 10:02:16 -08:00
  • 0d7b6ce135 Fix Python 3 six.moves Jukka Lehtosalo 2016-01-08 15:21:11 +00:00
  • 505b108ced Merge pull request #35 from mrwright/master Guido van Rossum 2016-01-07 15:59:42 -08:00
  • 72e8813a1a Fix types for timetuple and utctimetuple Matthew Wright 2016-01-07 15:45:01 -08:00
  • 5cf2fa45b8 Add cStringIO, cPickle to six.moves. Add six.moves for PY3. Guido van Rossum 2016-01-06 16:41:22 -08:00
  • 0f21b59a30 Some updates now typing.Container is defined. Guido van Rossum 2016-01-06 16:38:14 -08:00
  • 9aabb149e3 Simplify PY3 len() spec, no Union with tuple needed. Guido van Rossum 2016-01-06 16:34:53 -08:00
  • 0eac99679c Add object.__setattr__ for 2.7. Guido van Rossum 2016-01-06 16:34:26 -08:00
  • 017f4efa0f Simplify SystemRandom now it subclasses Random, for 2.7 and 3. Guido van Rossum 2016-01-06 16:29:04 -08:00
  • cb40959116 Improve 2.7 stub for tempfile. Guido van Rossum 2016-01-06 16:21:35 -08:00
  • ee8e8fcb69 Swap max() and min() overloads so max(x, y) and min(x, y) work as expected. Guido van Rossum 2016-01-06 16:14:34 -08:00
  • 71b8a9f9ec Update 2.7 built-in set to be the same as PY3 set. AbstractSet does not have a union() method. Guido van Rossum 2016-01-06 16:06:58 -08:00
  • 76b746ba3f Add object.__new__ so it can be called. Guido van Rossum 2016-01-06 15:54:39 -08:00
  • f37bd69266 Add abstractproperty.__new__ so it can be used. Guido van Rossum 2016-01-06 15:48:47 -08:00
  • cff4aa066b Merge pull request #34 from catch22/patch-2 Matthias Kramm 2015-12-30 13:21:23 -08:00
  • c62821221a Update random.pyi Michael Walter 2015-12-30 22:18:10 +01:00
  • 28e1cbec46 Merge pull request #33 from catch22/patch-1 Matthias Kramm 2015-12-30 13:04:28 -08:00
  • 05a711ec27 Update shlex.pyi Michael Walter 2015-12-30 21:59:56 +01:00
  • 4a1674a148 Improve Python 2 stub for abc; _weakrefset stub. Matthias Kramm 2015-12-22 15:37:03 -08:00
  • 2bb0d98b6d add Python 2 stubs for ast, tokenize Matthias Kramm 2015-12-22 12:01:02 -08:00
  • cbb8014508 Add __version__ to _ast.pyi. Matthias Kramm 2015-12-22 09:53:38 -08:00
  • a3987c09e6 Merge pull request #32 from gnprice/sequence Matthias Kramm 2015-12-22 05:50:56 -08:00
  • 08d08fbabb builtins: Reversible is redundant when Sequence is already present Greg Price 2015-12-21 18:12:23 -08:00
  • f3b499fd99 typing: update 2 to match 3 on Sequence and Container Greg Price 2015-12-21 18:11:14 -08:00
  • c0493bd3d0 Merge pull request #31 from gnprice/operator matthiaskramm 2015-12-17 15:31:48 -08:00
  • 667b98040a operator: Make attrgetter, itemgetter, methodcaller usable Greg Price 2015-12-17 15:12:47 -08:00
  • b46b66c187 Share operator in 2and3 Greg Price 2015-12-17 14:49:34 -08:00
  • bd36a37481 Add __setattr__ to object Jukka Lehtosalo 2015-12-05 15:41:10 -08:00
  • a4c268c4e4 The typing stub should not import asyncio. Fixes https://github.com/JukkaL/mypy/issues/1050 . Guido van Rossum 2015-12-05 14:22:45 -08:00
  • 107104dfe5 Fix type annotation syntax used in asyncio/futures.pyi. Guido van Rossum 2015-12-04 11:41:55 -08:00
  • 0687239f53 Inaugurate six.moves with zip (copied from builtins). Guido van Rossum 2015-12-04 09:00:28 -08:00
  • d7b9c96ec9 Merge pull request #30 from rowillia/master Guido van Rossum 2015-12-03 15:31:12 -08:00
  • 7f22db0492 Add Async classes to typing stub. Roy Williams 2015-12-01 11:38:01 -08:00
  • 30af935dc7 Make partial a generic type (the parameter being the return type). Guido van Rossum 2015-11-30 15:12:26 -08:00
  • cea5060892 Add sqlite3 stubs. Guido van Rossum 2015-11-30 14:56:08 -08:00
  • 4c547fc4f6 Add object.__new__ Jukka Lehtosalo 2015-11-29 12:18:42 -08:00
  • e7f731e74b Revert "Improve typing of 2.7/contextlib::contextmanager." Guido van Rossum 2015-11-26 21:02:23 -08:00
  • 76c3a5bab0 Improve typing of 2.7/contextlib::contextmanager. Guido van Rossum 2015-11-25 16:59:50 -08:00
  • 00f8e62751 Add __getattr__(), __setattr__(), __delattr__() to 2.7 threading.local(). Guido van Rossum 2015-11-25 15:59:20 -08:00
  • bbbccf61dc Add 'closing' to 2.7 contextlib stubs (same as for 3). Guido van Rossum 2015-11-24 21:08:02 -08:00
  • d3efa5d6bc Add missing definitions to Python 3 'traceback' Jukka Lehtosalo 2015-11-23 21:45:21 -08:00
  • a0deb69be9 Updated stub for 2.7 httplib; new stubs for 2.7 mimetools, rfc822. Guido van Rossum 2015-11-23 10:29:38 -08:00
  • 7b75dec702 Make last two slice() args optional in 2.7. Guido van Rossum 2015-11-22 21:08:38 -08:00
  • 1f7b00e451 Add more constants to 2.7 os stub, copied from 3.x os stub. Guido van Rossum 2015-11-22 17:02:41 -08:00
  • 9ae0c0b337 Fix argparse.Namespace better. Guido van Rossum 2015-11-22 16:28:54 -08:00
  • 830dc1f95b Add discard() method to 2.7 set(). Guido van Rossum 2015-11-22 16:20:19 -08:00
  • dc5a1e34a3 Fix 2.7 signature of fnmatch.translate(). Guido van Rossum 2015-11-22 16:18:29 -08:00
  • ea35d5c8e6 Add __getattr__ to argparse.Namespace. Guido van Rossum 2015-11-20 14:38:23 -08:00
  • 32cce184cf Backport enum for 2.7. Guido van Rossum 2015-11-20 14:34:33 -08:00