Commit Graph
23 Commits
Author SHA1 Message Date
Ethan Smith 5435ed76ef sysconfig.get_config_var should return Any (#8572)
This can return str, int, None... and maybe more. In the interest of being defensive, have it return Any.
2022-08-19 21:29:47 -07:00
Ethan Smith cb76f32826 Allow passing complex to complex constructor (#5609) 2021-06-09 22:58:22 +02:00
Ethan Smith 8b3e27d76d Fix _winapi stub (#3903) 2020-04-04 21:26:47 +02:00
Ethan Smith ad304cb9ee Use overlapped signatures of _winapi functions (#2723)
For python/mypy#6148
2019-01-07 11:39:26 +01:00
Ethan Smith a01335421d Make _winapi.SetNamedPipeHandleState args Optional (#2571)
As can be seen here: https://github.com/python/cpython/blob/master/Modules/_winapi.c#L1436 the arguments can be Optional (and are used as such in CPython).
2018-10-31 08:20:54 +01:00
Ethan Smith cc45366ca5 Merge 2/genericpath and 2and3/genericpath (#2330) 2018-07-13 14:07:15 -07:00
Ethan Smith 236ed3f731 Add genericpath stub (#2300)
To backport `os.path.commonpath` in mypy I needed to use genericpath. It seems unchanged since 3.4, and the `same*` functions were added in 3.4. (checked via comparing the `__all__`s of the source in 2.7, 3.4, and 3.7.)
2018-07-02 13:13:38 -07:00
Ethan Smith de1755b263 Remove type cycle in click (#2277) 2018-06-26 07:24:55 -07:00
Ethan Smith 507ad2dcbe importlib.util.find_spec has optional return type (#2270) 2018-06-22 08:06:06 -07:00
Ethan Smith 7831f8d883 Add _winapi stub (#2209)
This module is going to be used by mypy for the daemon on Windows. To that end I ran stubgen on _winapi, then read through Modules/_winapi.c to add the function types. This seems to have been added in Python 3.1, but I think it is completely fine to just leave it in stdlib/3.
2018-06-09 18:48:30 -07:00
Ethan Smith f4d19d9f61 Remove selenium stubs (#2137)
These stubs have not been used by anything for a while
(`remote` doesn't have a __init__.pyi). The quality of the stubs is also
lacking.
2018-05-16 11:50:01 -04:00
Ethan Smith 66545f147a Fix protobuf stubs (#2135) 2018-05-15 20:21:23 -04:00
Ethan Smith e9600db2ec Remove symlinks! (#2132) 2018-05-15 15:18:59 -04:00
Ethan Smith db9246b3e5 Fix importlib.resources for mypy (#2130) 2018-05-15 10:34:56 -04:00
Ethan Smith 1c47458ac6 Add cache_clear to lru_cache (#1941) 2018-03-05 18:52:46 -08:00
Ethan Smith f91c891ad4 Fix name collision in contextlib on 3.7 (#1915) 2018-02-24 09:25:47 -08:00
Ethan Smith 7737e519a3 Add __dict__ to object in Python 2 (#1746)
Use str as key type for __dict__
2017-11-16 08:44:48 -08:00
Ethan Smith b7dc041f44 reexport names in 3/dateutil.tz (#1673)
This was missed in #1669, and should completely fix #1665.
2017-10-15 13:32:36 -07:00
Ethan Smith 8ab207bcee Decrease Mypy concurrent process count (#1618)
Mypy has issues with running its test suite with many processes
concurrently. This should reduce travis test failures, if not completely
resolve failures. See issue https://github.com/python/mypy/issues/3543
2017-09-20 13:01:56 -07:00
Ethan Smith ac36193550 Add Gitter chat badge (#1399)
And update other gitter links.
2017-06-12 15:55:05 -07:00
Ethan Smith be80c36816 fix mypy_selftest (#1369)
Related to python/mypy#3337.
2017-05-28 23:30:54 -07:00
Ethan 625ea80a99 update OptParse to work on 2and3 (#1164)
* update OptParse to work on 2and3

* remove duplicative dunder methods in Option

* Union Nones to Optional and Text->_Text
2017-04-19 06:10:07 -07:00
Ethan 3b30996733 Change ast's parse signature to return Module (#836) 2017-01-17 09:49:41 -08:00