4 ms·
How can I pass whatever I want into that function at runtime, while still satisfying the type checker?
by pansa2 6y ago
How can I pass whatever I want into that function at runtime, while still satisfying the type checker?
- _flux 6y agoYou can use the Any type, or you can not annotate at all, though I'm not sure if the latter is something that passes some stricter modes of e.g. mypy.
- dragonwriter 6y ago> How can I pass whatever I want into that function at runtime, while still satisfying the type checker? Tell the type-checker to buzz-off by any number of means, including # type: ignore