diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2023-05-23 19:14:34 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-05-23 19:23:48 -0400 |
commit | e37394fe1dbfe325acb300204797130dceb9891e (patch) | |
tree | 7ab6a132f88d52d7cfe3ed67e082c6d2c5f86381 | |
parent | aee1bb20816968975498be712385f4aca8b99b62 (diff) | |
download | meson-e37394fe1dbfe325acb300204797130dceb9891e.zip meson-e37394fe1dbfe325acb300204797130dceb9891e.tar.gz meson-e37394fe1dbfe325acb300204797130dceb9891e.tar.bz2 |
deprecate the buildtarget.get_id() method
This has never been undocumented and there's no obvious value to having
it or using it. We're not even sure anyone ever has used it.
Closes #6061
-rw-r--r-- | mesonbuild/interpreter/interpreterobjects.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/interpreter/interpreterobjects.py b/mesonbuild/interpreter/interpreterobjects.py index c1ce0da..4ca7f52 100644 --- a/mesonbuild/interpreter/interpreterobjects.py +++ b/mesonbuild/interpreter/interpreterobjects.py @@ -887,6 +887,9 @@ class BuildTargetHolder(ObjectHolder[_BuildTarget]): @noPosargs @noKwargs + @FeatureDeprecated('BuildTarget.get_id', '1.2.0', + 'This was never formally documented and does not seem to have a real world use. ' + + 'See https://github.com/mesonbuild/meson/pull/6061') def get_id_method(self, args: T.List[TYPE_var], kwargs: TYPE_kwargs) -> str: return self._target_object.get_id() |