One function
NumberInput in imryche/blockkit
The author described this change as “fix is_decimal_allowed method chaining”. It counts as a record because the check below fails on the code as it stood at 0e7534dcc and passes on def21100e, with nothing else changed between the two runs.
Projectimryche/blockkit
Fix saved2025-03-31
Sharing licenceMIT · LICENSE
Change size+1 −1
What the code was meant to do, written into the code itself as a docstring
Number input element Allows user to enter a number into a single-line field. Slack docs: https://api.slack.com/reference/block-kit/block-elements#number
The change
| 43 | 43 | ) | |
| 44 | 44 | ||
| 45 | 45 | def is_decimal_allowed(self, is_decimal_allowed: bool) -> Self: | |
| 46 | - | self._add_field( | |
| 46 | + | return self._add_field( | |
| 47 | 47 | "is_decimal_allowed", | |
| 48 | 48 | is_decimal_allowed, | |
| 49 | 49 | validators=[Typed(bool), Required()], |
The check that tells the two apart
fail→pass·tests/test_core.py::TestNumberInput::test_builds
Check file tests/test_core.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before it0e7534dcc0b5523048855c64b7ef4316546a60dd
Broken version dated2025-03-31
Moduleblockkit.core
Units changedNumberInput
Fingerprint9bb81825cf5f36c6
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.