diff options
| author | Tristan Partin <tristan@partin.io> | 2023-07-12 17:56:18 -0500 |
|---|---|---|
| committer | Tristan Partin <tristan@partin.io> | 2023-07-12 18:56:06 -0500 |
| commit | 33c8362a1cdd57dd60c7be8fdf3b0566ccdeb3bf (patch) | |
| tree | 441f9e319ee99b27bc1c051e204923cf57488892 /mesonbuild/utils/universal.py | |
| parent | dc692d98fc48f8d5c6ea528adc6dce481412b02f (diff) | |
| download | meson-33c8362a1cdd57dd60c7be8fdf3b0566ccdeb3bf.tar.gz | |
Match the method signatures of parent classes
Names and types of some methods did not match their parent methods.
Diffstat (limited to 'mesonbuild/utils/universal.py')
| -rw-r--r-- | mesonbuild/utils/universal.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/utils/universal.py b/mesonbuild/utils/universal.py index 35da2f40c..3b7ca142f 100644 --- a/mesonbuild/utils/universal.py +++ b/mesonbuild/utils/universal.py @@ -1983,7 +1983,7 @@ class RealPathAction(argparse.Action): super().__init__(option_strings, dest, nargs=None, default=default, **kwargs) def __call__(self, parser: argparse.ArgumentParser, namespace: argparse.Namespace, - values: T.Union[str, T.Sequence[T.Any], None], option_string: str = None) -> None: + values: T.Union[str, T.Sequence[T.Any], None], option_string: T.Optional[str] = None) -> None: assert isinstance(values, str) setattr(namespace, self.dest, os.path.abspath(os.path.realpath(values))) |
