Roy Williams
7c706e1100
Move boto to 2and3, add stubs for s3
...
I've added types for the functions we've been using internally, will expand in the future.
2016-12-22 11:23:36 -08:00
Lukasz Langa
4466a225a6
Upgrade to flake8-pyi 16.12.1
...
Fixes #786 .
2016-12-21 17:30:57 -08:00
Lukasz Langa
38dd402b99
Fix broken imports in routes/__init__.pyi
...
This is needed by #786 .
2016-12-21 17:26:40 -08:00
Lukasz Langa
231ed7bb89
Fix broken imports in redis/__init__.pyi
...
This is needed by #786 .
2016-12-21 17:24:31 -08:00
Lukasz Langa
cfe1cbb426
Add missing import in werkzeug stubs.
...
This is needed by #786 .
2016-12-21 17:20:01 -08:00
Lukasz Langa
092b15e3e9
Mark 92 F821 to go.
2016-12-21 01:31:12 -08:00
Lukasz Langa
609b2486d1
Add missing Optional import.
2016-12-21 01:18:34 -08:00
Lukasz Langa
bacd6c0aed
Add missing Set imports.
2016-12-21 01:17:55 -08:00
Lukasz Langa
c0c982ada5
Add missing Dict imports.
2016-12-21 01:15:26 -08:00
Lukasz Langa
5f416fae64
Add missing List imports.
2016-12-21 01:06:52 -08:00
Lukasz Langa
8c5c788a4d
Enable flake8-pyi plugin to automatically include *.pyi files
...
This simplifies running flake8 tests and reduces the amount of F821 errors
reported (flake8-pyi enables support for forward references in *.pyi files).
The error code is left disabled until I clean up the remaining issues.
2016-12-21 00:56:01 -08:00
Lukasz Langa
52d9f815dd
Remove spurious out/ directory.
2016-12-20 09:53:47 -08:00
Thomas Aynaud
740c8921a5
Style fixes on bz2
2016-12-20 09:07:15 -08:00
Lukasz Langa
79d8757f1f
Enable flake8 tests
...
Ran both by Travis and locally. There's some setup required, README updated.
A few important Flake8 checks are still disabled, we're going to enable them as
soon as the stubs are fixed and we can reliably run Flake8 locally with Python
3.6.
2016-12-20 04:07:44 -08:00
Lukasz Langa
82b2d8e3bc
Fixing flake8 F403, F405 errors
2016-12-20 02:28:12 -08:00
Lukasz Langa
99a57e5cbe
Fixing flake8 E251 errors
2016-12-20 01:54:34 -08:00
Lukasz Langa
68a49c2c2e
Fixing flake8 E111, E114, E116, E203, E225, E262 errors
2016-12-20 01:39:18 -08:00
Lukasz Langa
6e2709906b
Fixing flake8 B errors
2016-12-20 01:17:38 -08:00
Lukasz Langa
ad9038dcd7
Fixing flake8 E303 errors
2016-12-20 01:08:00 -08:00
Lukasz Langa
d70bb0c00f
Fixing flake8 E202, E203, E225 errors
2016-12-20 01:02:59 -08:00
Lukasz Langa
6eb97964fd
Fixing flake8 E401, E402 errors
2016-12-20 00:47:51 -08:00
Lukasz Langa
147772950f
Fixing flake8 E265 errors
2016-12-20 00:16:44 -08:00
Lukasz Langa
5b6a9937b2
Fixing flake8 E266 errors
2016-12-20 00:06:36 -08:00
Lukasz Langa
6b5c6626d6
Fixing flake8 E121, E122, E123, E124, E125, E126 errors
2016-12-19 23:53:19 -08:00
Lukasz Langa
67e38b6806
Fixing flake8 E231 errors
2016-12-19 23:53:19 -08:00
Wesley Bowman
93ec300dd4
added a few types to simplejson's dumps to match dump ( #781 )
...
* added a few types to simplejson's dumps to match dump
* fixed the fp option on dumps
2016-12-19 23:52:22 -08:00
Roy Williams
3d79158db5
Add return type to multiprocessesing.cpu_count for Python 2.
...
Python 3 already had the correct type, it was missing in Python 2.
2016-12-19 23:51:21 -08:00
Lukasz Langa
fe0e3744cc
Fixing flake8 E261 errors
2016-12-19 22:09:35 -08:00
Lukasz Langa
b84f20a011
Fixing flake8 W errors
2016-12-19 21:52:56 -08:00
Lukasz Langa
d2c0f83a72
Introduce flake8 configuration.
...
This is currently disabled due to the high number of errors that need fixing.
I'll be committing fixes for them and updating the numbers in .flake8 until we
can enable linting for all files by default.
2016-12-19 21:27:41 -08:00
Reverb Chu
a6ecab3fe7
correct return value type TestRunner.run
2016-12-19 20:28:34 -08:00
Roy Williams
89da3a4159
Move Crypto to 2and3 and generate rest of stubs. ( #782 )
...
I implemented strong types for Crypto.Cipher
2016-12-19 20:13:51 -08:00
TrueBrain
7e89fc0d49
Define __slots__ for object as Iterable[str] / Iterable[Union[str, unicode]] ( #780 )
...
* Define __slots__ for object as Iterable[str] / Iterable[Union[str, unicode]]
* A string as __slots__ value is also valid and represents a single item
2016-12-19 13:09:04 -08:00
Lukasz Langa
2058ae30ab
Proper singledispatch type definitions
...
Correctly detects calls to `register()` with a function of incompatible return
type. Correctly recognizes the `register()`, `dispatch()`, and
`_clear_cache()` methods on a generic function, as well as the `registry`
mapping.
Possible future improvements: it would be amazing if `register()` checked if
the first argument of the registered callable is indeed of valid type. This
would require Callable[] to support varargs. It would also be great if we
could read the arguments of the remaining arguments during `@singledispatch()`
and cross-check them during `register()` with the currently registered
implementation. Again, this would require Callable[] to become much more
advanced.
2016-12-19 12:54:08 -08:00
David Fisher
beb9183103
Swap order of overloads to fix filter without strict optional ( #779 )
...
Related to python/mypy#2587
2016-12-16 15:57:04 -08:00
Simon Ekstrand
aa6f4a07c1
Fix AbstractEventLoop.call* callable definitions. ( #753 )
...
Several asyncio AbstractEventLoop methods take a callback as
an argument that is passed *args. The Callable definition was
incorrect for those callbacks.
2016-12-16 15:15:20 -08:00
Philip House
830c2fb089
updating stderr to return type Any ( #776 )
2016-12-16 11:51:52 +00:00
David Fisher
957307b785
Make filter work properly with Optional elements ( #775 )
2016-12-15 17:53:38 -08:00
KOSAKA Masayuki
6fc57a419b
Adapt base64 stub to newer Python 3 versions ( #762 )
2016-12-14 08:52:19 -08:00
Tom Manderson
5dbc7d1db6
Py2 SQLAlchemy: Move some TypeEngine functions from subclasses to TypeEngine ( #724 )
2016-12-13 15:38:55 -08:00
Henri Dwyer
6887edebda
add calendar data attributes ( #751 )
2016-12-13 14:58:26 -08:00
jgarvin
0392ccaa9c
Add stub for _thread.get_ident() ( #746 )
2016-12-13 14:56:06 -08:00
KOSAKA Masayuki
3cae92253b
Fix datetime.fromtimestamp ( #759 )
2016-12-13 14:55:06 -08:00
Jelle Zijlstra
918dab66d0
pstats: add stub ( #727 )
...
partially addresses #531
2016-12-13 14:51:57 -08:00
Philip House
04f5c5699e
Merge 3.4 and 3.5 pathlib stubs ( #764 )
...
Fixes #659
2016-12-13 12:03:03 -08:00
Guido van Rossum
b46280ec78
Make FrozenSet covariant. ( #769 )
...
Follow-up for PR #726 .
2016-12-13 11:40:18 -08:00
Philip House
bc252d69ac
set subprocess stdout to be type Any ( #581 ) ( #761 )
2016-12-13 14:23:45 +00:00
Thomas Aynaud
0d7a5374c5
Add missing stubs for bz2
2016-12-12 14:06:10 -08:00
Matthias Kramm
7e6000949e
it's threading.Lock, not threading.LockType
2016-12-12 12:02:01 -08:00
Matthias Kramm
ac97b22365
add missing Ellipsis
2016-12-12 12:02:01 -08:00