mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 04:45:01 +00:00
Rename Red Knot (#17820)
This commit is contained in:
parent
e6a798b962
commit
b51c4f82ea
1564 changed files with 1598 additions and 1578 deletions
10
crates/ty_python_semantic/resources/mdtest/literal/bytes.md
Normal file
10
crates/ty_python_semantic/resources/mdtest/literal/bytes.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
# Bytes literals
|
||||
|
||||
## Simple
|
||||
|
||||
```py
|
||||
reveal_type(b"t" b"y") # revealed: Literal[b"ty"]
|
||||
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"]
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue