From 0fe3dc6571303458d361952059750bd8479a9a65 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 1 Jun 2021 11:03:21 -0700 Subject: modules/qt: Deprecated the *sources variadic argument to preproccess It's confusing, and it's a duplicate of the `sources` keyword argument, which has always existed. --- .../snippets/qt_preprocessed_varargs_deprecated.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 docs/markdown/snippets/qt_preprocessed_varargs_deprecated.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/qt_preprocessed_varargs_deprecated.md b/docs/markdown/snippets/qt_preprocessed_varargs_deprecated.md new file mode 100644 index 0000000..f763695 --- /dev/null +++ b/docs/markdown/snippets/qt_preprocessed_varargs_deprecated.md @@ -0,0 +1,16 @@ +## Qt.preprocess positional source arguments deprecated + +The `qt.preprocess` method currently has this signature: +`qt.preprocess(name: str | None, *srcs: str)`, this is not a nice signature +because it's confusing, and there's a `sources` keyword argument that does +exactly the same thing. Instead of +```meson +qt.preprocess(name, list, of, sources) +``` +use +```meson +qt.preprocess( + name, + sources : [list, of , sources], +) +``` \ No newline at end of file -- cgit v1.1