Commit Graph
10 Commits
Author SHA1 Message Date
George King 1533602779 filter function: make the callable of the first overload non-optional so that mypy is able to select the second overload for the case. (#1855) 2018-02-05 10:50:40 -08:00
George King 7c413c904d exit function takes argument of any type. (#1116)
The type annotations for exit were incorrectly limited to int in two places; the others that I looked at are already correct.
2017-03-29 14:24:34 -07:00
George King 18cc2cbf8c Add correct optional default start/end parameters to str count, find, index, rfind, rindex. (#1109)
fixes #1108
2017-03-28 10:11:50 -07:00
George King c2cdb1b025 Fix re Pattern.groupindex annotation. (#1106) 2017-03-27 20:45:51 -07:00
George King af5b5c83fd Make shutil.copytree stub's ignore parameter optional. (#740)
* Make `shutil.copytree` stub's `ignore` parameter optional.

* python2.7 shutil.copytree `ignore` annotated as optional.
2016-12-07 14:47:34 -08:00
George King e7db9cda4d Add stub for os.path.commonpath (new in 3.5). (#738)
* Add stub for os.path.commonpath (new in 3.5).
2016-12-07 14:47:04 -08:00
George King dccc29bc2f Add None to type union for subprocess.Popen.communicate input. (#743)
* Add `None` to type union for `subprocess.Popen.communicate` stub's `input` parameter.

* subprocess.communicate `input` annotated as `Optional[AnyStr]` for both 2.7 and 3.x; `timeout` as `Optional[float]`.
2016-12-07 14:46:34 -08:00
George King 00e4027b77 Add idx parameter to JSONDecoder.raw_decode. (#742) 2016-12-07 13:19:27 -08:00
George King 085c3f9915 Make json.load, json.loads stubs object_hook parameter optional. (#741) 2016-12-07 13:14:49 -08:00
George King 4d59c04c16 Fix README.md to name mypy_test.py correctly. (#737) 2016-12-05 11:18:33 -08:00