Anton Grübel
ac2ef6e8c9
Use paramspec in no_type_check_decorator ( #5942 )
2021-08-26 22:46:27 +03:00
Oleg Höfling
64f481189f
drop ellipsis assignments from module vars, classvars and instance attrs ( #5914 )
...
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com >
2021-08-11 19:26:58 +02:00
Akuli
ce11072dbe
Big diff: use lower-case list and dict ( #5888 )
2021-08-08 09:26:35 -07:00
Akuli
ee487304d7
Big diff: Use new "|" union syntax ( #5872 )
2021-08-08 11:05:21 +02:00
Sebastian Rittau
840df19501
Switch to Python 3.10.0-rc.1 in CI ( #5845 )
...
* Switch to Python 3.10.0-rc.1 in CI
* Add module argument to ForwardRef.__init__()
2021-08-04 07:14:38 -07:00
Jelle Zijlstra
e1b9ab3372
Remove redundant import from typing ( #5827 )
...
Fixes quora/pyanalyze#221 .
2021-07-30 22:55:33 -07:00
Sebastian Rittau
52dd232a23
Rework Match.group handling ( #5557 )
...
* Rework Match.group handling
Standardize group(), groups(), groupdict(), and __getattr__() to return
Any instead of AnyStr. Also special case group(0) and __getattr__(0) to
always return AnyStr. Use PEP 604 for unions in changed lines.
2021-06-09 00:27:49 +03:00
Terence Honles
63696823d7
typing: type decorators so they don't count as untyped lines ( #5348 )
2021-05-06 15:57:52 -07:00
Shantanu
59bf496479
typing: ParamSpec uses kw-only args ( #5310 )
...
Co-authored-by: hauntsaninja <>
2021-05-02 12:52:13 -07:00
Shantanu
3aa1f2d42f
typing: update and fix for py310 ( #5287 )
2021-05-01 21:09:26 -07:00
Sebastian Rittau
4ac3ccad45
black: enable skip_magic_trailing_comma ( #5252 )
...
* black: enable skip_magic_trailing_comma
* Remove spurious commas
2021-04-27 08:32:32 -07:00
Jelle Zijlstra
97c6806582
Revert "Awaitable.__await__ should accept an Iterator rather than a Generator ( #5194 )" ( #5195 )
...
This reverts commit c687e297ec .
2021-04-09 09:49:39 +02:00
Wilfredo Sánchez Vega
c687e297ec
Awaitable.__await__ should accept an Iterator rather than a Generator ( #5194 )
...
Fixes #5125
2021-04-09 01:43:46 +02:00
Eric Traut
e2967a8bee
Eliminated the use of "bare" TypeVars in stdlib stubs ( #5041 )
...
Eliminated the use of "bare" TypeVars (i.e. a TypeVar that appears only once) within generic methods. While not considered an error in PEP 484, these are a common source of bugs in code, and some type checkers (including pytype and pyright) flag them as errors.
Co-authored-by: Eric Traut <erictr@microsoft.com >
2021-02-27 19:43:45 -08:00
Eric Traut
ffcd592aef
Added support for | operator for combining two TypedDict instances ( #5054 )
...
Co-authored-by: Eric Traut <erictr@microsoft.com >
2021-02-23 10:04:31 +01:00
Ivan Levkivskyi
16ae4c6120
Re-organize directory structure ( #4971 )
...
See discussion in #2491
Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com >
2021-01-27 12:00:39 +00:00