abc.html#collections.abc.MappingView
"collections.abc.MappingView") now supports subscripting ( ` []  ` ). See  [
**PEP 585** ](https://peps.python.org/pep-0585/) and [ Generic Alias Type
](stdtypes.html#types-genericalias) .

_ class  _ typing.  MutableMapping  (  _ Mapping[KT,  VT]  _ )  Â¶

    

Deprecated alias to [ ` collections.abc.MutableMapping  `
](collections.abc.html#collections.abc.MutableMapping
"collections.abc.MutableMapping") .

Deprecated since version 3.9:  [ ` collections.abc.MutableMapping  `
](collections.abc.html#collections.abc.MutableMapping
"collections.abc.MutableMapping") now supports subscripting ( ` []  ` ). See
[ **PEP 585** ](https://peps.python.org/pep-0585/) and [ Generic Alias Type
](stdtypes.html#types-genericalias) .

_ class  _ typing.  MutableSequence  (  _ Sequence[T]  _ )  Â¶

    

Deprecated alias to [ ` collections.abc.MutableSequence  `
](collections.abc.html#collections.abc.MutableSequence
"collections.abc.MutableSequence") .

Deprecated since version 3.9:  [ ` collections.abc.MutableSequence  `
](collections.abc.html#collections.abc.MutableSequence
"collections.abc.MutableSequence") now supports subscripting ( ` []  ` ). See
[ **PEP 585** ](https://peps.python.org/pep-0585/) and [ Generic Alias Type
](stdtypes.html#types-genericalias) .

_ class  _ typing.  MutableSet  (  _ AbstractSet[T]  _ )  Â¶

    

Deprecated alias to [ ` collections.abc.MutableSet  `
](collections.abc.html#collections.abc.MutableSet
"collections.abc.MutableSet") .

Deprecated since version 3.9:  [ ` collections.abc.MutableSet  `
](collections.abc.html#collections.abc.MutableSet
"collections.abc.MutableSet") now supports subscripting ( ` []  ` ). See  [
**PEP 585** ](https://peps.python.org/pep-0585/) and [ Generic Alias Type
](stdtypes.html#types-genericalias) .

_ class  _ typing.  Sequence  (  _ Reversible[T_co],  Collection[T_co]  _ )
Â¶

    

Deprecated alias to [ ` collections.abc.Sequence  `
](collections.abc.html#collections.abc.Sequence "collections.abc.Sequence") .

Deprecated since version 3.9:  [ ` collections.abc.Sequence  `
](collections.abc.html#collections.abc.Sequence "collections.abc.Sequence")
now supports subscripting ( ` []  ` ). See  [ **PEP 585**
](https://peps.python.org/pep-0585/) and [ Generic Alias Type
](stdtypes.html#types-genericalias) .

_ class  _ typing.  ValuesView  (  _ MappingView,  Collection[_VT_co]  _ )  Â¶

    

Deprecated alias to [ ` collections.abc.ValuesView  `
](collections.abc.html#collections.abc.ValuesView
"collections.abc.ValuesView") .

Deprecated since version 3.9:  [ ` collections.abc.ValuesView  `
](collections.abc.html#collections.abc.ValuesView
"collections.abc.ValuesView") now supports subscripting ( ` []  ` ). See  [
**PEP 585** ](https://peps.python.org/pep-0585/) and [ Generic Alias Type
](stdtypes.html#types-genericalias) .

####  Aliases to asynchronous ABCs in [ ` collections.abc  `
](collections.abc.html#module-collections.abc "collections.abc: Abstract base
classes for containers") Â¶

_ class  _ typing.  Coroutine  (  _ Awaitable[ReturnType],  Generic[YieldType,
SendType,  ReturnType]  _ )  Â¶

    

Deprecated alias to [ ` collections.abc.Coroutine  `
](collections.abc.html#collections.abc.Coroutine "collections.abc.Coroutine")
.

The variance and order of type variables correspond to those of  ` Generator
` , for example:

    
    
    from collections.abc import Coroutine
    c: Coroutine[list[str], str, int]  # Some coroutine defined elsewhere
    x = c.send('hi')                   # Inferred type of 'x' is list[str]
    async def bar() -> None:
        y = await c                    # Inferred type of 'y' is int
    

New in version 3.5.3.

Deprecated since version 3.9:  [ ` collections.abc.Coroutine  `
](collections.abc.html#collections.abc.Coroutine "collections.abc.Coroutine")
now supports subscripting ( ` []  ` ). See  [ **PEP 585**
](https://peps.python.org/pep-0585/) and [ Generic Alias Type
](stdtypes.html#types-genericalias) .