When getting debug file arguments we can sometimes pass None, where a None is unexpected. This becomes a particular problem in the Cuda compiler, where the output will unconditionally be concatenated with a static string, resulting in an uncaught exception. This is really easy to spot once we annotate the functions in question, where a static type checker like mypy easily spots the issue. This commit adds those annotations, and then fixes the resulting error. Fixes: #12997pull/13115/head
parent
46b3c1c30d
commit
9e3b3db705
1 changed files with 11 additions and 5 deletions
Loading…
Reference in new issue