Skip to content

Commit

Permalink
Fix small typo in init.md (#1277)
Browse files Browse the repository at this point in the history
Co-authored-by: Hynek Schlawack <hs@ox.cx>
  • Loading branch information
my1e5 and hynek committed Apr 24, 2024
1 parent f8c991b commit f7f317a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/init.md
Expand Up @@ -262,7 +262,7 @@ C(x=128)
>>> C("128")
Traceback (most recent call last):
...
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')
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')
>>> C(256)
Traceback (most recent call last):
...
Expand Down

0 comments on commit f7f317a

Please sign in to comment.