Skip to content

Commit f7f317a

Browse files
my1e5hynek
andauthored
Fix small typo in init.md (#1277)
Co-authored-by: Hynek Schlawack <[email protected]>
1 parent f8c991b commit f7f317a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/init.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ C(x=128)
262262
>>> C("128")
263263
Traceback (most recent call last):
264264
...
265-
TypeError: ("'x' must be <class 'int'> (got '128' that is a <class 'str'>).", Attribute(name='x', default=NOTHING, validator=[<instance_of validator for type <class 'int'>>, <function fits_byte at 0x10fd7a0d0>], repr=True, cmp=True, hash=True, init=True, metadata=mappingproxy({}), type=None, converter=one), <class 'int'>, '128')
265+
TypeError: ("'x' must be <class 'int'> (got '128' that is a <class 'str'>).", Attribute(name='x', default=NOTHING, validator=[<instance_of validator for type <class 'int'>>, <function fits_byte at 0x10fd7a0d0>], repr=True, cmp=True, hash=True, init=True, metadata=mappingproxy({}), type=None, converter=None), <class 'int'>, '128')
266266
>>> C(256)
267267
Traceback (most recent call last):
268268
...

0 commit comments

Comments
 (0)