Commit Graph
11 Commits
Author SHA1 Message Date
Svyatoslav Ilinskiy d702d3621c Complete stubs for email package in python2 (#1936)
Fix #685, fix #275
2018-03-06 21:38:01 -08:00
Svyatoslav Ilinskiy 4491e415f9 Make operations on set take AbstractSet[object] (#1533)
Previously they were `AbstractSet[Any]`
2017-08-11 17:17:47 -07:00
Svyatoslav Ilinskiy 8ac0694056 Make functions any and all accept Iterable[object] (#1531)
Previously, they were accepting `Iterable`, which expanded to `Iterable[Any]`.
2017-08-07 17:13:43 -06:00
Svyatoslav Ilinskiy 7a580ed0a9 Re-export values for click library (#1516)
That way they can be used as
```
import click
click.<value>
```
2017-08-03 15:58:02 -07:00
Svyatoslav Ilinskiy 3f9fafbbb7 Re-export code from _ast into ast. (#1515)
After mypy [started hiding](https://github.com/python/mypy/pull/3706) imported names in stubs unless `from ... import ...` is used, we found an error with stubs of ast module. 

It looks like ast module should re-export everything in `_ast` and according to PEP 484, it can do that by doing `from _ast import *`, so this is what this PR does.
2017-08-03 15:57:20 -07:00
Svyatoslav Ilinskiy a249b40a6d Make flake8 not complain about star imports (#1519)
This commit disables following flake8 errors:
* F403: `‘from module import *’ used; unable to detect undefined names`
* F405: `name may be undefined, or defined from star imports: module`

We don't need to worry about undefined names since running mypy_test.py
should detect such undefined names.
2017-08-03 14:26:31 -07:00
Svyatoslav Ilinskiy aa68403230 Make BaseException's init accept object instead of Any (#1518) 2017-08-03 12:57:59 -07:00
Svyatoslav Ilinskiy 98d768b2c6 Re-export simplejson values (#1517) 2017-08-03 08:33:51 -07:00
Svyatoslav Ilinskiy 45f2d9d625 Add travis badge (#1474) 2017-07-10 14:23:05 -07:00
Svyatoslav Ilinskiy ee5e3affe1 Update Num stub for typed_ast 2.7 (#1430)
Field `n` should be a `Union[int, float, complex]`, not just `Union[int, float]`
2017-06-23 16:43:23 -07:00
Svyatoslav Ilinskiy d5eb32d67e Support iteration over enums with enum34 (#1412)
* Support iteration over enums in python 2

* fix lint
2017-06-19 06:39:56 -07:00