mirror of
https://github.com/astral-sh/ruff.git
synced 2026-11-26 06:15:39 +08:00
- Updated the `prek` hook to replace `blacken-docs` with ruff - Added some formatting directives to preserve obvious intentional formatting choices - Made some choice edits to content for better readability with new format - Formatted md tests and updated snapshots
275 B
275 B
Bytes literals
Simple
reveal_type(b"t" b"y") # revealed: Literal[b"ty"] # fmt:skip
reveal_type(b"hello") # revealed: Literal[b"hello"]
reveal_type(b"world" + b"!") # revealed: Literal[b"world!"]
reveal_type(b"\xff\x00") # revealed: Literal[b"\xff\x00"]