3 ms·
You can use `if (response := get_user_input()) is not None` if that's important. IME, empty strings and None would be treated the same way.
by maleldil 2y ago
You can use `if (response := get_user_input()) is not None` if that's important. IME, empty strings and None would be treated the same way.