Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 26, 2024
1 parent a8968f6 commit 53bbd3e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mypy/stubutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,4 @@ def is_private_module(module: str) -> bool:
For example, returns True if 'foo._bar.utils' is passed.
Returns False if 'foo.bar.__init__' is passed.
"""
return any(
name.startswith("_") and not name.endswith("__")
for name in module.split(".")
)
return any(name.startswith("_") and not name.endswith("__") for name in module.split("."))

0 comments on commit 53bbd3e

Please sign in to comment.