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 5c848d7 commit de802b7Copy full SHA for de802b7
Tools/clinic/libclinic/converters.py
@@ -319,7 +319,7 @@ def converter_init(
319
if isinstance(self.default, str):
320
if len(self.default) != 1:
321
fail(f"int_converter: illegal default value {self.default!r}")
322
- elif accept == {int}:
+ elif accept != {int}:
323
fail(f"int_converter: illegal 'accept' argument {accept!r}")
324
if type is not None:
325
self.type = type
0 commit comments