diff options
| author | Eli Schwartz <eschwartz93@gmail.com> | 2024-07-29 23:17:22 -0400 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2024-07-30 14:13:11 -0400 |
| commit | 823779a9b1b39afb061d9ecf597aa96ab2ceb07b (patch) | |
| tree | 66a0d43c76f4b233aa6f38a2965e1517413a2a53 | |
| parent | ec0da1defabfd84c0aaf4a863de1a6a41f202076 (diff) | |
| download | meson-823779a9b1b39afb061d9ecf597aa96ab2ceb07b.tar.gz | |
mypy: add annotation for object attribute used as a private cache via hasattr
If it exists, we want to know it has the right type when we use it in
ninjabackend.py.
| -rw-r--r-- | mesonbuild/build.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 42f1dcc9c..3107673a7 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -721,6 +721,9 @@ class BuildTarget(Target): ('cpp', 'cuda'), ]) + # This is used by the backend to cache complex computation. + cached_generated_headers: T.Optional[T.List[FileOrString]] + def __init__( self, name: str, |
