From cce3a8f3e1ac1ff14fbfcac6d47af9618940b557 Mon Sep 17 00:00:00 2001 From: jiyujie2006 <49909156+jiyujie2006@users.noreply.github.com> Date: Sun, 31 May 2026 15:04:17 +0800 Subject: [PATCH] Import ssl for CLI cert annotations --- src/flask/cli.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/flask/cli.py b/src/flask/cli.py index 5b3116ed..d5f5ae93 100644 --- a/src/flask/cli.py +++ b/src/flask/cli.py @@ -7,6 +7,7 @@ import inspect import os import platform import re +import ssl import sys import traceback import typing as t @@ -25,8 +26,6 @@ from .helpers import get_debug_flag from .helpers import get_load_dotenv if t.TYPE_CHECKING: - import ssl - from _typeshed.wsgi import StartResponse from _typeshed.wsgi import WSGIApplication from _typeshed.wsgi import WSGIEnvironment