diff --git a/CHANGELOG.md b/CHANGELOG.md index db16851959..afa44cd334 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -65,6 +65,8 @@ END_UNRELEASED_TEMPLATE ### Fixed * (gazelle) Fixed handling of auto-included `__init__.py` files when generating `py_binary` targets ([#3729](https://github.com/bazel-contrib/rules_python/issues/3729)). +* (entry_point) From now on `mypy` type checking will be skipped on the generated + files ([#3126](https://github.com/bazel-contrib/rules_python/issues/3126)). {#v0-0-0-added} ### Added diff --git a/python/private/py_console_script_gen.py b/python/private/py_console_script_gen.py index 4b4f2f6986..a1df2c2a06 100644 --- a/python/private/py_console_script_gen.py +++ b/python/private/py_console_script_gen.py @@ -62,7 +62,7 @@ raise if __name__ == "__main__": - sys.exit({entry_point}()) + sys.exit({entry_point}()) # type: ignore """ diff --git a/tests/entry_points/py_console_script_gen_test.py b/tests/entry_points/py_console_script_gen_test.py index 1bbf5fbf25..77ad1a5faa 100644 --- a/tests/entry_points/py_console_script_gen_test.py +++ b/tests/entry_points/py_console_script_gen_test.py @@ -162,7 +162,7 @@ def test_a_single_entry_point(self): raise if __name__ == "__main__": - sys.exit(baz()) + sys.exit(baz()) # type: ignore """ ) self.assertEqual(want, got)