Jelle Zijlstra
5d553c9584
apply black and isort ( #4287 )
...
* apply black and isort
* move some type ignores
2020-06-28 13:31:00 -07:00
Jan Verbeek
6f159d9fc6
Make Python 2's inspect more tolerant of unicode ( #3847 )
2020-03-13 20:48:42 -07:00
Sebastian Rittau
ec7960a8cb
Convert namedtuples to class syntax ( #3321 )
2019-10-20 10:37:33 +02:00
Florian Bruhin
9b0922166a
Allow callables in _SourceObjectType (Python 2) ( #3338 )
...
This is important because mypy doesn't generally think functions are compatible with `FunctionType`, so `inspect.getsource` on arbitrary functions is rejected by the current annotations.
2019-10-10 20:51:56 -07:00
Sebastian Rittau
c32e1e2280
Enable --disallow-any-generics for stubs ( #3288 )
2019-10-01 05:31:34 -07:00
Árni Már Jónsson
e0cc8bdafb
inspect.Traceback/FrameInfo index/code_context attributes now Optional[] ( #3265 )
...
Resolves #3264
2019-09-26 17:13:00 +02:00
Ville Skyttä
c6cbe4da66
inspect: use more specific arg type for some source retrieve functions ( #3155 )
2019-07-30 17:53:56 +02:00
Ville Skyttä
bf50612d76
inspect: get{doc,comments,module,sourcefile} can return None ( #3137 )
2019-07-24 22:05:01 +02:00
Michael Lee
efb67946f8
Use variable annotations everywhere ( #2909 )
2019-04-13 10:40:52 +02:00
Sebastian Rittau
006a79220f
Flake8 fixes ( #2549 )
...
* Fix over-indented continuation lines
* Fix under-indented continuation lines
* Fix whitespace around default operator problems
* Limit line lengths
* Fix inconsistent files
2018-10-24 07:20:53 -07:00
Mathieu Leduc-Hamel
351d019241
Mark inspect.getmembers as Optional for both Py2 and Py3 ( #2172 )
2018-05-29 10:43:34 -07:00
rchen152
8d46ada49d
Add undocumented but occasionally used attributes to inspect.pyi. ( #1864 )
...
* Add attributes not in docs to 2/inspect.pyi.
* Add attributes not in docs to 3/inspect.pyi.
* Change list to List[Any] in 2/inspect.pyi
2018-02-14 16:20:55 +00:00
Jelle Zijlstra
915a91f80d
fix "isisgeneratorfunction" ( #1301 )
2017-05-23 09:51:54 -07:00
rchen152
c9e992ea8d
Fix a few return types in stdlib/2/inspect.pyi. ( #916 )
2017-02-06 08:19:14 -08:00
Matthias Kramm
295ffbe4f3
improve inspect.pyi ( #908 )
2017-01-31 14:34:18 -08:00
Lukasz Langa
d70bb0c00f
Fixing flake8 E202, E203, E225 errors
2016-12-20 01:02:59 -08:00
Lukasz Langa
6b5c6626d6
Fixing flake8 E121, E122, E123, E124, E125, E126 errors
2016-12-19 23:53:19 -08:00
Guido van Rossum
cb97bb54c0
Move 2.7 to 2 ( #635 )
...
Closes #579 .
2016-10-26 16:24:49 -07:00