@@ -18,23 +18,18 @@ Utilities
18
18
19
19
Functions and classes provided:
20
20
21
- .. class :: AbstractContextManager[T_co, ExitT_co]
21
+ .. class :: AbstractContextManager
22
22
23
23
An :term: `abstract base class ` for classes that implement
24
24
:meth: `object.__enter__ ` and :meth: `object.__exit__ `. A default
25
25
implementation for :meth: `object.__enter__ ` is provided which returns
26
26
``self `` while :meth: `object.__exit__ ` is an abstract method which by default
27
27
returns ``None ``. See also the definition of :ref: `typecontextmanager `.
28
28
29
- The first type parameter, ``T_co ``, represents the type returned by
30
- the :meth: `~object.__enter__ ` method. The optional second type parameter, ``ExitT_co ``,
31
- which defaults to ``bool | None ``, represents the type returned by the
32
- :meth: `~object.__exit__ ` method.
33
-
34
29
.. versionadded :: 3.6
35
30
36
31
37
- .. class :: AbstractAsyncContextManager[T_co, AExitT_co]
32
+ .. class :: AbstractAsyncContextManager
38
33
39
34
An :term: `abstract base class ` for classes that implement
40
35
:meth: `object.__aenter__ ` and :meth: `object.__aexit__ `. A default
@@ -43,11 +38,6 @@ Functions and classes provided:
43
38
returns ``None ``. See also the definition of
44
39
:ref: `async-context-managers `.
45
40
46
- The first type parameter, ``T_co ``, represents the type returned by
47
- the :meth: `~object.__aenter__ ` method. The optional second type parameter, ``AExitT_co ``,
48
- which defaults to ``bool | None ``, represents the type returned by the
49
- :meth: `~object.__aexit__ ` method.
50
-
51
41
.. versionadded :: 3.7
52
42
53
43
0 commit comments