Skip to content

Commit 3c87e0f

Browse files
committed
fix(entry_point): ignore type lints on the generated files
Fixes #3126
1 parent 8633255 commit 3c87e0f

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ END_UNRELEASED_TEMPLATE
6565
### Fixed
6666
* (gazelle) Fixed handling of auto-included `__init__.py` files when generating `py_binary`
6767
targets ([#3729](https://github.com/bazel-contrib/rules_python/issues/3729)).
68+
* (entry_point) From now on `mypy` type checking will be skipped on the generated
69+
files ([#3126](https://github.com/bazel-contrib/rules_python/issues/3126)).
6870

6971
{#v0-0-0-added}
7072
### Added

python/private/py_console_script_gen.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
raise
6363
6464
if __name__ == "__main__":
65+
# type: ignore
6566
sys.exit({entry_point}())
6667
"""
6768

0 commit comments

Comments
 (0)