Commit Graph

7 Commits

Author SHA1 Message Date
Matthias Kramm
b46658c104 remove stray ',' 2016-08-04 15:40:12 -07:00
Jakub Stasiak
983d8cbf5e Fix Python 2.7 inspect stub (currentframe + frame type)
inspect.currentframe() return a frame object on its own, not as a part
of a record.

Additionally the artificial _Frame type is unnecessary as
types.FrameType exists.
2016-03-10 00:56:03 +01:00
Jakub Stasiak
630f718376 Improve Python 2.7 inspect stub
This patch consists of:

* Splitting and reordering the content into sections corresponding
  to the module's documentation sections
* Implementing some missing functions
* Adding TODOs for missing stuff (I may've missed something)

The signature of isgenerator() (was: Any argument, is: argument of type
object) is changed for consistency with other is* functions I added
here, after some considerations I couldn't decide whether it should be
object or Any - if object is not advised please let me know.
2016-03-09 02:45:43 +01:00
Guido van Rossum
740568ed25 Use NamedTuple for inspect.ArgSpec and .FullArgSpec. 2016-01-18 16:51:23 -08:00
Ben Darnell
3a674645a5 Assorted fixes to stubs 2016-01-16 16:52:01 -05:00
Matthias Kramm
94c9ce8fd0 Consistently use '= ...' for optional parameters. 2015-11-09 13:55:02 -08:00
Matthias Kramm
337abed05a add (overwrite with) mypy stubs, if available 2015-09-30 09:59:44 -07:00