diff options
| author | Eli Schwartz <eschwartz93@gmail.com> | 2024-07-29 23:03:47 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2024-07-30 14:13:11 -0400 |
| commit | ec0da1defabfd84c0aaf4a863de1a6a41f202076 (patch) | |
| tree | 002c0c8cd61cd73b0ee85d61e6124ec32aeb938a /mesonbuild/compilers/objcpp.py | |
| parent | f2de6dfd1041ef2e62b41d437da2d62af4a4d437 (diff) | |
| download | meson-ec0da1defabfd84c0aaf4a863de1a6a41f202076.tar.gz | |
mypy: reduce layers of indirection to ensure narrower type inference
We have a function that wraps two others because it first checks whether
the input is static or shared. By the same token, it has to return types
valid for either. We already *know* that we are a shared library, so we
can and should use the real function directly, which is both a
micro-optimization of function call overhead, and fixes a mypy
"union-attr" error.
Diffstat (limited to 'mesonbuild/compilers/objcpp.py')
0 files changed, 0 insertions, 0 deletions
