summaryrefslogtreecommitdiff
path: root/unittests/baseplatformtests.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-02-11 20:19:27 -0500
committerEli Schwartz <eschwartz93@gmail.com>2024-07-30 14:13:12 -0400
commit28ab1ce39a7889c681cf6874f9062baa97b1f5f7 (patch)
treea04d560e38e414308ae3ea713233490c8301dab8 /unittests/baseplatformtests.py
parenta59231ff4a30f686306662e1298c69fd2459dec8 (diff)
downloadmeson-28ab1ce39a7889c681cf6874f9062baa97b1f5f7.tar.gz
compilers: straighten out CompileResult according to how it is actually used
In particular, it is only ever constructed once, and all but two of its arguments are always passed. So there's no reason or valid justification to initialize them as None or pretend that you have to check them for None values. Nor in fact does the command list need to be a default_factory. There are also two instance attributes which it is never instantiated with, but which are tracked after the fact. Don't add this to the signature for `__init__` as that is misleading.
Diffstat (limited to 'unittests/baseplatformtests.py')
0 files changed, 0 insertions, 0 deletions