We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a202e5c commit 43c73baCopy full SHA for 43c73ba
1 file changed
Doc/howto/descriptor.rst
@@ -1553,10 +1553,10 @@ assignments. Only attribute names specified in ``__slots__`` are allowed:
1553
.. doctest::
1554
1555
>>> auto = Vehicle()
1556
- >>> auto.id_nubmer = 'VYE483814LQEX'
+ >>> auto.id_number = 'VYE483814LQEX'
1557
Traceback (most recent call last):
1558
...
1559
- AttributeError: 'Vehicle' object has no attribute 'id_nubmer'
+ AttributeError: 'Vehicle' object has no attribute 'id_number'
1560
1561
2. Helps create immutable objects where descriptors manage access to private
1562
attributes stored in ``__slots__``:
0 commit comments