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

_ class  _ typing.  AbstractSet  (  _ Collection[T_co]  _ )  Â¶

    

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

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

_ class  _ typing.  ByteString  (  _ Sequence[int]  _ )  Â¶

    

This type represents the types [ ` bytes  ` ](stdtypes.html#bytes "bytes") , [
` bytearray  ` ](stdtypes.html#bytearray "bytearray") , and [ ` memoryview  `
](stdtypes.html#memoryview "memoryview") of byte sequences.

Deprecated since version 3.9, will be removed in version 3.14:  Prefer [ ` collections.abc.Buffer  ` ](collections.abc.html#collections.abc.Buffer "collections.abc.Buffer") , or a union like ` bytes  |  bytearray  |  memoryview  ` . 

_ class  _ typing.  Collection  (  _ Sized,  Iterable[T_co],  Container[T_co]
_ )  Â¶

    

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

New in version 3.6.

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

_ class  _ typing.  Container  (  _ Generic[T_co]  _ )  Â¶

    

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

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

_ class  _ typing.  ItemsView  (  _ MappingView,  AbstractSet[tuple[KT_co,
VT_co]]  _ )  Â¶

    

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

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

_ class  _ typing.  KeysView  (  _ MappingView,  AbstractSet[KT_co]  _ )  Â¶

    

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

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

_ class  _ typing.  Mapping  (  _ Collection[KT],  Generic[KT,  VT_co]  _ )
Â¶

    

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

This type can be used as follows:

    
    
    def get_position_in_index(word_list: Mapping[str, int], word: str) -> int:
        return word_list[word]
    

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

_ class  _ typing.  MappingView  (  _ Sized  _ )  Â¶

    

Deprecated a