Fix two typos

This commit is contained in:
David Peter
2025-02-20 09:51:16 +01:00
parent 6720cc7cbb
commit f890cd6bad
2 changed files with 2 additions and 2 deletions

View File

@@ -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: <bound method `join` of `Literal[b"foo"]`>

View File

@@ -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.