diff --git a/starlette/_utils.py b/starlette/_utils.py index f4a4030bb..d602dca6a 100644 --- a/starlette/_utils.py +++ b/starlette/_utils.py @@ -16,7 +16,7 @@ has_exceptiongroups = True if sys.version_info < (3, 11): # pragma: no cover try: - from exceptiongroup import BaseExceptionGroup # type: ignore[import-not-found] # type: ignore[unused-ignore] + from exceptiongroup import BaseExceptionGroup # type: ignore[unused-ignore] except ImportError: has_exceptiongroups = False