diff options
Diffstat (limited to 'mesonbuild/templates/sampleimpl.py')
| -rw-r--r-- | mesonbuild/templates/sampleimpl.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mesonbuild/templates/sampleimpl.py b/mesonbuild/templates/sampleimpl.py index 9702ae884..4d586b1fe 100644 --- a/mesonbuild/templates/sampleimpl.py +++ b/mesonbuild/templates/sampleimpl.py @@ -13,8 +13,18 @@ # limitations under the License. from __future__ import annotations +import typing as T + +if T.TYPE_CHECKING: + from ..minit import Arguments + class SampleImpl: + + def __init__(self, args: Arguments): + self.name = args.name + self.version = args.version + def create_executable(self) -> None: raise NotImplementedError('Sample implementation for "executable" not implemented!') |
