Rebecca Chen
a1d1870779
Fix a py2 parameter type in string.Template.(safe_)substitute. ( #2888 )
...
Context: https://github.com/python/typeshed/pull/2871#issuecomment-476806895
2019-03-26 23:25:15 -07:00
Rebecca Chen
7c80c52a7a
Add missing class pdb.Pdb. ( #2872 )
...
Based on: https://docs.python.org/3/library/pdb.html#pdb.Pdb ,
with the one difference that the `skip` argument to the
constructor is present in 2.7 despite being listed as new in 3.1.
2019-03-16 22:14:16 +01:00
Rebecca Chen
e541cdd1a6
Add unicode support to py2 string.Template. ( #2871 )
2019-03-16 22:12:36 +01:00
Rebecca Chen
03878d732a
Add attribute queue.Queue.queue. ( #2870 )
2019-03-16 22:11:48 +01:00
Rebecca Chen
437d8e0ddd
Add tarfile.filemode. ( #2869 )
...
This function is defined up to Python 3.7 (albeit deprecated in Python 3).
2019-03-16 09:45:01 +01:00
Rebecca Chen
8c252052f9
Move pydoc from 2/ to 2and3/. ( #2873 )
2019-03-16 09:37:24 +01:00
Rebecca Chen
4743d2521a
Remove asyncio.tasks from the pytype blacklist. ( #2874 )
...
With version 2019.03.15, pytype is able to parse this file.
2019-03-16 09:35:30 +01:00
Rebecca Chen
45e52de188
Speed up pytype_test by reducing subprocess calls. ( #2868 )
...
Speeds up pytype considerably by directly calling pytype.io.parse_pyi
rather than running `pytype --parse-pyi` in a subprocess.
The subprocess logic is still required to handle the one pyi file
marked `# parse only` in the pytype blacklist. Once
https://github.com/google/pytype/issues/242 is fixed, the test code
can be cleaned up considerably.
2019-03-14 19:04:40 -07:00
Rebecca Chen
7b6bb60fe2
Remove an unused import from stdlib/3/importlib/__init__.pyi. ( #2866 )
...
pytype has trouble resolving unused imports, since it looks at usage
to distinguish submodules from other imports.
2019-03-14 19:51:19 +01:00
Rebecca Chen
3f8c08402d
Remove an unnecessary entry from the pytype blacklist. ( #2799 )
2019-02-15 17:33:29 -08:00
Rebecca Chen
d275e73e1f
Remove pytype workaround in os/__init__.pyi. ( #2797 )
...
Pytype release 2019.02.13 fixed the bug that
necessitated this workaround.
2019-02-14 12:29:19 -08:00
Rebecca Chen
3d8a8ec45d
Fix py3 types of inspect.FullArgSpec.var(args|kw) ( #2556 )
2018-10-25 10:45:59 -07:00
Rebecca Chen
ea0a0fd17e
Fix _StrType in difflib in Python 2. ( #2514 )
...
difflib functions accept unicode as well.
2018-10-12 14:39:24 +02:00
Rebecca Chen
9fda6b20ec
Make the signature of optparse.OptionParser.parse_args more precise. ( #2464 )
2018-09-25 21:15:10 -07:00
Rebecca Chen
cfa52c7c38
Add a stub for google.protobuf.json_format. ( #2479 )
2018-09-25 21:03:27 -07:00
Rebecca Chen
eb09e2898b
Update pytype_test to be easier to run manually. ( #2469 )
...
* Moves the pytype installation to requirements-tests-py3.txt, now
that pytype can run under Python 3.5+.
* Changes tests/pytype_test.py to not require a --python{version}-exe
argument when it can automatically find the Python interpreter, and
cleans up a few typos and out-of-date things.
* Updates the appropriate documentation.
* Updates .travis.yml.
2018-09-21 09:38:33 -07:00
Rebecca Chen
b7c262523b
Fix the Python 2 signature of tempfile._TemporaryFileWrapper.write. ( #2465 )
2018-09-18 13:54:56 +02:00
Rebecca Chen
7dbc8748dc
Add __iter__ method to codecs.StreamReader. ( #2463 )
2018-09-18 13:46:16 +02:00
Rebecca Chen
9e72a7fd0c
Fix the return type of decimal.Decimal.__new__. ( #2458 )
2018-09-15 18:12:52 +02:00
Rebecca Chen
77e4d5d5a8
Add six.moves.urllib_request and six.moves.urllib_response. ( #2455 )
2018-09-13 22:01:56 +02:00
Rebecca Chen
a08c6eae23
Add two more third_party libraries to pytype_test. ( #2437 )
2018-09-07 23:42:24 -07:00
Rebecca Chen
ff821f9751
Update pytype_test and pytype_blacklist ( #2225 )
...
* Add parts of third_party/ to pytype_test.
Pytype uses six and mypy_extensions, so these pyi files should be
tested with pytype.
* Remove newly loadable pyi files from pytype_blacklist.
2018-06-15 07:53:17 -07:00