3 ms·
I mean run-time checks that the user must implement. For example, in JS you might put these all over your code-base: if (typeof x !== 'string') { th
by de_keyboard 5y ago
I mean run-time checks that the user must implement.
For example, in JS you might put these all over your code-base:
if (typeof x !== 'string') {
throw Error('Expected a string');
}
- zohch 5y agoThis will already inform mypy that after that if statement x is type string.