nabnut
87f96dc1f0
Add stub for queue.SimpleQueue in 3.7 ( #2995 )
...
Closes : #2994
2019-06-07 11:50:39 +02:00
markedwards
5c94b58752
Add FullLoader and FullConstructor classes to yaml ( #3035 )
2019-06-06 17:47:39 +02:00
Evan Moses
db5fc492aa
Added tojson_filter and detect_encoding to flask.json ( #3030 )
2019-06-05 23:39:49 +02:00
J Rob Gant
40c4e4ff3d
Annotate HTMLParser attribute optional value ( #3034 )
...
Closes #3031
2019-06-05 18:51:52 +02:00
Sebastian Rittau
0e5b3770f8
Add a "pull requests welcome" batch ( #3033 )
...
We get quite a few bug reports where after a maintainer writes
"Pull Requests Welcome" we get a PR by the submitter. Maybe this
badge will help a bit to encourage people directly submit PRs,
reducing maintainer workload.
2019-06-05 07:51:01 -07:00
Benjamin Peterson
d6e2b02f72
Use custom tuple subclass for pwd.struct_passwd ( #3017 )
2019-06-05 11:59:32 +02:00
Radu Matei Lăcraru
a7785151aa
Make AsyncGeneratorType.aclose() properly return Awaitable[None] ( #3032 )
2019-06-05 11:20:23 +02:00
Chandan Singh
233f2abf19
click: Use property decorator for read-only properties ( #3028 )
...
Since these properties do not have a setter, be explicit with the
`@property` decorator. This will allow type checkers to see that
assignment of these attributes is an error.
See https://github.com/python/typeshed/pull/3027#discussion_r289623016
for some related context.
2019-06-03 08:13:52 -07:00
Chandan Singh
018ecb3f16
Update Click to 7.0 ( #3027 )
...
Closes #3020 .
2019-06-03 07:38:27 -07:00
Rebecca Chen
f8093d63cd
Move stdlib/3/curses to stdlib/2and3/curses. ( #3025 )
...
Also add the A_ITALIC constant, which is new in 3.7.
2019-06-01 10:51:07 +02:00
秋葉
dd244d1200
fix Sniffer.sniff return type ( #3023 )
2019-05-31 07:22:36 -07:00
Mathieu Bridon
6061ca404e
Move Redis stubs to 2and3 ( #3015 )
...
They actually work for both Python 2 and 3, mostly because they aren't
really typed yet.
2019-05-29 15:45:46 +02:00
Mark Mendoza
d8e14d6ead
[pyre] Adding IntVar to typing_extensions ( #3008 )
2019-05-28 19:48:13 +02:00
Utkarsh Gupta
020449a1ed
argparse.pyi: Allow Callable[[Text], _T] ( #3013 )
...
Fixes #2988
2019-05-27 14:39:04 +02:00
Brian Brunner
53500c8750
Make Timer args less restrictive ( #3007 )
...
Closes #3004
2019-05-23 15:08:48 +02:00
Sebastian Rittau
260369e6e7
Use typing.Text for argument types ( #3000 )
...
Also, use just str for argument types in Python 3+ branches.
2019-05-21 19:53:47 -07:00
Ran Benita
45266c9c32
Allow is_dst=None in pytz.BaseTzInfo.localize() ( #3002 )
...
See http://pytz.sourceforge.net/#problems-with-localtime
2019-05-21 10:16:30 +02:00
Viktor Roytman
07d4938251
Add missing methods to ItemsView and KeysView, including isdisjoint ( #2997 )
2019-05-20 02:12:22 +02:00
Saul Shanabrook
38a7f14658
Bound arguments are ordered ( #2998 )
...
The `arguments` attribute of the `BoundArguments` is specified as an "ordered, mutable mapping (collections.OrderedDict)"
not just a mutable mapping: https://docs.python.org/3/library/inspect.html#inspect.BoundArguments.arguments
2019-05-18 22:00:05 +02:00
Paul Dagnelie
d13eb937f7
Implement SupportsIndex ( #2996 )
2019-05-16 21:55:57 -07:00
Dominic
5b63540b4b
Add sys.breakpointhook() and sys.__breakpointhook__ ( #2991 )
...
Closes #2979
2019-05-16 11:58:54 +02:00
Chad Dombrova
840631657f
Add undocumented member glob.has_magic ( #2972 )
2019-05-16 11:28:49 +02:00
秋葉
a80066952e
Add missing annotation in cmath module ( #2989 )
2019-05-16 11:00:44 +02:00
Rebecca Chen
78982de5be
Remove all pyi files that use nested classes from the pytype blacklist. ( #2993 )
...
We finally support this!
2019-05-15 14:53:13 -07:00
Jelle Zijlstra
cd9b7158ec
fix CI ( #2992 )
2019-05-15 14:20:08 -07:00
Mark Mendoza
2cf4af784c
Convert typing.ContextManager.exit to use dunder parameter names ( #2980 )
2019-05-15 13:30:20 -07:00
Ivan Levkivskyi
50d98acc76
Remove redundant variable definitions in ast module ( #2986 )
2019-05-13 19:32:24 +02:00
Jukka Lehtosalo
e3773ad691
Fix typos in yaml stubs (save_* -> safe_*) ( #2985 )
2019-05-13 11:57:34 -04:00
Simon Kohlmeyer
a868221347
Update dateutil to 2.7.5 ( #2694 )
...
This is still missing the easter and tzinfo module, but includes newer
functions like today and isoparse.
2019-05-13 07:58:43 -07:00
Jean Hominal
897148073a
Add functions to six.moves.urllib.request ( #2982 )
...
parse_http_list and parse_keqv_list were added to six.moves.urllib.request
in version 1.11.
2019-05-13 10:29:34 +02:00
Rebecca Chen
aa4a84ef3f
Always use fully qualified names to refer to nested classes. ( #2983 )
...
The main purpose of this change is to get the stubs into a
form that pytype will support with its next release. Since
these stubs already mostly use fully qualified names, this
will also increase consistency.
2019-05-12 15:10:48 -07:00
Danny Weinberg
b4376fc3d2
Have click.style return a str ( #2981 )
...
This previously was missing a return type and therefore defaulting to
`Any`, but it actually returns a `str`.
2019-05-11 22:20:31 +02:00
Ivan Levkivskyi
75723e3885
Add an optional opener parameter to open() function ( #2977 )
...
Fixes #2976
2019-05-09 16:59:32 +02:00
zadamah
c03100230d
Add new show_choices argument to click options ( #2978 )
2019-05-09 16:28:08 +02:00
Rebecca Chen
5799b8dfcf
Unblacklist more third_party stubs from pytype parsing. ( #2975 )
2019-05-08 20:18:08 -07:00
Jennifer Taylor
36b28e5b97
Split unittest stubs and add a few field ( #2973 )
2019-05-08 17:46:45 +02:00
Chad Dombrova
feb74cf9de
Add subprocess.list2cmdline for python 2 ( #2971 )
2019-05-08 10:21:32 +02:00
Ivan Levkivskyi
d61635e243
Add TypedDict to typing_extensions ( #2940 )
...
Since there is a PEP for `TypedDict` (PEP 589), it is being added to `typing_extension`, see https://github.com/python/typing/pull/628 . This PR essentially copies the definition from `mypy_extensions`.
Corresponding mypy PR https://github.com/python/mypy/pull/6744 can be merged independently of this PR.
2019-05-07 14:45:45 -04:00
Mark Vismonte
a193aacea8
Add py3.7 support to Future.add_done_callback ( #2970 )
2019-05-07 13:14:03 -04:00
Anirudh Padmarao
53d4610579
Add stub for asyncio.BaseEventLoop ( #2960 )
2019-05-07 12:08:33 -04:00
Mark Vismonte
8451cd7819
Add annotation for Future._callbacks ( #2965 )
2019-05-07 18:02:41 +02:00
Jelle Zijlstra
b5493e8639
add types.FunctionType.__init__ ( #2968 )
...
Fixes #2930
2019-05-07 17:31:01 +02:00
Jelle Zijlstra
d7e9af4492
allow callables in dis() ( #2969 )
...
Fixes #2914
2019-05-07 17:21:54 +02:00
Jelle Zijlstra
bdb1de57f5
narrow signature of __contains__ for str-like classes ( #2967 )
...
Fixes #2937
2019-05-07 10:24:28 -04:00
Rebecca Chen
4990830c8f
Make pytype happy with the third_party click stubs. ( #2966 )
...
This also makes the flask stubs that depend on click parseable.
* In pytype_test, only parse files with the .pyi extension.
(There's a README in third_party/2and3/click/.)
* Annotate with ContextManager rather than using the
contextmanager decorator. This is shorter, removes a
dependency, and gets rid of the slight weirdness of a
decorator needing to be evaluated in a stub.
* Fix non-stub things.
2019-05-07 08:50:24 +02:00
Max Rydahl Andersen
5dda362b05
add autocomplete to click decorators ( #2705 )
2019-05-06 22:05:48 -04:00
Rebecca Chen
a6d92eca10
Adjust indentation of TODOs in third_party/2/gflags.pyi. ( #2964 )
...
Having TODOs at a different level of indentation than
the surrounding lines trips up pytype.
2019-05-06 22:05:17 -04:00
Mark Vismonte
e4a81132c4
Fix Future.__init__'s loop variable annotation ( #2961 )
2019-05-06 22:02:56 -04:00
Mark Vismonte
fe06e8e3c5
Add annotation to Future._loop ( #2959 )
2019-05-06 22:00:40 -04:00
Rebecca Chen
7c475a48d7
Fix typo: __builtins__ should be __builtin__. ( #2963 )
2019-05-06 22:00:02 -04:00