From c5998afdc110f3d2588137e57e47ba2c7fbc5926 Mon Sep 17 00:00:00 2001 From: David Peter Date: Thu, 20 Feb 2025 09:51:16 +0100 Subject: [PATCH] Fix two typos --- crates/red_knot_python_semantic/resources/mdtest/attributes.md | 2 +- .../resources/mdtest/descriptor_protocol.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/red_knot_python_semantic/resources/mdtest/attributes.md b/crates/red_knot_python_semantic/resources/mdtest/attributes.md index e9881b9d34..6e169fe22b 100644 --- a/crates/red_knot_python_semantic/resources/mdtest/attributes.md +++ b/crates/red_knot_python_semantic/resources/mdtest/attributes.md @@ -1045,7 +1045,7 @@ reveal_type(False.real) # revealed: Literal[0] ### Bytes-literal attributes -All attribute access on literal `bytes` types is currently delegated to `buitins.bytes`: +All attribute access on literal `bytes` types is currently delegated to `builtins.bytes`: ```py reveal_type(b"foo".join) # revealed: diff --git a/crates/red_knot_python_semantic/resources/mdtest/descriptor_protocol.md b/crates/red_knot_python_semantic/resources/mdtest/descriptor_protocol.md index 42ada703dc..4206440039 100644 --- a/crates/red_knot_python_semantic/resources/mdtest/descriptor_protocol.md +++ b/crates/red_knot_python_semantic/resources/mdtest/descriptor_protocol.md @@ -109,7 +109,7 @@ class C: non_data_descriptor = NonDataDescriptor() def f(self): - # This explains why data descriptors come first in the precendence chain. If + # This explains why data descriptors come first in the precedence chain. If # instance attributes would take priority, we would override the descriptor # here. Instead, this calls `DataDescriptor.__set__`, i.e. it does not affect # the type of the `data_descriptor` attribute.