summaryrefslogtreecommitdiff
path: root/run_mypy.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-01-03 23:51:49 -0500
committerEli Schwartz <eschwartz93@gmail.com>2024-02-12 23:35:39 -0500
commit5899daf25b406737b436f2256dbcaf273fae6ee3 (patch)
tree7fe895bab8784b5b219c7f29f78ccd201a0a1617 /run_mypy.py
parent1b15176168d90c913153c0da598e130e9214b3ab (diff)
downloadmeson-5899daf25b406737b436f2256dbcaf273fae6ee3.tar.gz
cuda module: use typed_pos_args for most methods
The min_driver_version function has an extensive, informative custom error message, so leave that in place. The other two functions didn't have much information there, and it's fairly evident that the cuda compiler itself is the best thing to have here. Moreover, there was some fairly gnarly code to validate the allowed values, which we can greatly simplify by uplifting the typechecking parts to the dedicated decorators that are both really good at it, and have nicely formatted error messages complete with reference to the problematic functions.
Diffstat (limited to 'run_mypy.py')
0 files changed, 0 insertions, 0 deletions