---
source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs
---
PYI057 Do not use `typing.ByteString`, which has unclear semantics and is deprecated
 --> PYI057.pyi:4:20
  |
2 | import collections.abc
3 | import foo
4 | from typing import ByteString
  |                    ^^^^^^^^^^
5 | from collections.abc import ByteString
6 | from foo import ByteString
  |

PYI057 Do not use `collections.abc.ByteString`, which has unclear semantics and is deprecated
 --> PYI057.pyi:5:29
  |
3 | import foo
4 | from typing import ByteString
5 | from collections.abc import ByteString
  |                             ^^^^^^^^^^
6 | from foo import ByteString
  |

PYI057 Do not use `typing.ByteString`, which has unclear semantics and is deprecated
  --> PYI057.pyi:8:4
   |
 6 | from foo import ByteString
 7 |
 8 | a: typing.ByteString
   |    ^^^^^^^^^^^^^^^^^
 9 | b: collections.abc.ByteString
10 | c: foo.ByteString
   |

PYI057 Do not use `collections.abc.ByteString`, which has unclear semantics and is deprecated
  --> PYI057.pyi:9:4
   |
 8 | a: typing.ByteString
 9 | b: collections.abc.ByteString
   |    ^^^^^^^^^^^^^^^^^^^^^^^^^^
10 | c: foo.ByteString
   |
