mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Skip importing sessions unless type checking
This commit is contained in:
parent
fddf0de4fb
commit
c02affd4cf
1 changed files with 5 additions and 2 deletions
|
|
@ -3,9 +3,12 @@
|
|||
# for license information.
|
||||
|
||||
import functools
|
||||
from typing import Type, TypeVar, Union, cast
|
||||
from typing import TYPE_CHECKING, Type, TypeVar, Union, cast
|
||||
|
||||
from debugpy.adapter.sessions import Session
|
||||
if TYPE_CHECKING:
|
||||
# Dont import this during runtime. There's an order
|
||||
# of imports issue that causes the debugger to hang.
|
||||
from debugpy.adapter.sessions import Session
|
||||
from debugpy.common import json, log, messaging, util
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue