diff options
Diffstat (limited to 'src/buildstream/_frontend/cli.py')
-rw-r--r-- | src/buildstream/_frontend/cli.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buildstream/_frontend/cli.py b/src/buildstream/_frontend/cli.py index d9527b274..e5325934c 100644 --- a/src/buildstream/_frontend/cli.py +++ b/src/buildstream/_frontend/cli.py @@ -236,7 +236,9 @@ def override_main(self, args=None, prog_name=None, complete_var=None, original_main = click.BaseCommand.main -click.BaseCommand.main = override_main +# Disable type checking since mypy doesn't support assigning to a method. +# See https://github.com/python/mypy/issues/2427. +click.BaseCommand.main = override_main # type: ignore ################################################################## |