Alex Waygood
0e75580381
Add missing attributes to contextlib._(Async)GeneratorContextManager ( #6676 )
2021-12-26 14:05:49 +01:00
Alex Waygood
2173c44117
Correct return type of asynccontextmanager in 3.10 ( #6634 )
2021-12-20 17:58:13 +01:00
Stephen Rosen
df0a724c0f
Always import Protocol from typing in stubs ( #6617 )
2021-12-17 13:12:22 +01:00
Akuli
a5bc1e037f
Add mypy error codes to '# type: ignore' comments ( #6379 )
2021-11-26 07:07:56 +01:00
Alex Waygood
848753a4a9
Use contextlib classes inside contextlib ( #6353 )
2021-11-22 07:40:11 +01:00
Thomas Grainger
50dff2454a
add contextlib.chdir ( #6191 )
2021-11-08 11:54:51 -08:00
Kevin Rose
98dde9c364
Mark some contextlib method arguments as positional-only ( #6118 )
2021-10-05 19:41:52 -07:00
Akuli
ee487304d7
Big diff: Use new "|" union syntax ( #5872 )
2021-08-08 11:05:21 +02:00
Akuli
42247feefb
use Self in async context managers ( #5724 )
2021-07-06 08:47:49 +02:00
Anton Grübel
c38171a0b3
Use _typeshed.Self with __enter__ ( #5712 )
2021-06-29 15:19:25 -07:00
Thomas Grainger
bd50dacd76
add py3.10 async contextlib.nullcontext ( #5711 )
2021-06-29 08:35:44 -07:00
Thomas Grainger
14add7520b
widen _SupportsAclose ( #5708 )
...
see https://github.com/python-trio/trio-typing/issues/31#issuecomment-867534826
2021-06-28 15:29:21 -07:00
Thomas Grainger
c522e8e53c
contextlib.nullcontext is a class ( #5695 )
...
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2021-06-26 08:19:03 -07:00
Thomas Grainger
74091411ea
widen contextlib._SupportsClose and _SupportsAclose ( #5655 )
2021-06-17 11:58:49 +03:00
Jelle Zijlstra
4581501c98
use ParamSpec for @contextmanager ( #5476 )
2021-06-14 16:38:39 +02:00
Pavel Karateev
af376f4d1f
Add contextlib.AsyncContextDecorator ( #5550 )
2021-05-29 06:44:10 -07:00
Akuli
17dcea4a68
Akuli and srittau: Remove Python 2 branches from Python 3 stubs ( #5461 )
...
* run script and do some manual changes (Akuli)
* do the whole thing manually (srittau)
* merge changes (Akuli)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2021-05-15 15:33:39 +03:00
Shantanu
11c673b681
contextlib: add aclosing in py310 ( #5317 )
...
* contextlib: add aclosing in py310
* use protocols for closing, aclosing
2021-05-02 14:53:06 -07: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