From 53bbd3ebe5573de3196d659665d01d02b6e18f62 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 26 Jan 2024 02:32:34 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- mypy/stubutil.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mypy/stubutil.py b/mypy/stubutil.py index 00eeaae5eeb4c..524b8d69826ad 100644 --- a/mypy/stubutil.py +++ b/mypy/stubutil.py @@ -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("."))