Minor cleanup and consistent formatting of the Markdown-based tests. - Removed lots of unnecessary `a`, `b`, `c`, … variables. - Moved test assertions (`# revealed:` comments) closer to the tested object. - Always separate `# revealed` and `# error` comments from the code by two spaces, according to the discussion [here](https://github.com/astral-sh/ruff/pull/13746/files#r1799385758). This trades readability for consistency in some cases. - Fixed some headings
274 B
274 B
Bytes subscript
Simple
reveal_type(b'red' b'knot') # revealed: Literal[b"redknot"]
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"]