File tree Expand file tree Collapse file tree 6 files changed +31
-6
lines changed Expand file tree Collapse file tree 6 files changed +31
-6
lines changed Original file line number Diff line number Diff line change
1
+ from __future__ import annotations
2
+ import typing
3
+
1
4
from .v2 import CacheV2
2
- from ..api import CMakeApiType
5
+
6
+ if typing .TYPE_CHECKING :
7
+ from ..api import CMakeApiType
3
8
4
9
CACHE_API : dict [int , CMakeApiType ] = {
5
10
2 : CacheV2 ,
Original file line number Diff line number Diff line change
1
+ from __future__ import annotations
2
+ import typing
3
+
1
4
from .v1 import CMakeFilesV1
2
- from ..api import CMakeApiType
5
+
6
+ if typing .TYPE_CHECKING :
7
+ from ..api import CMakeApiType
3
8
4
9
CMAKEFILES_API : dict [int , CMakeApiType ] = {
5
10
1 : CMakeFilesV1 ,
Original file line number Diff line number Diff line change
1
+ from __future__ import annotations
2
+ import typing
3
+
1
4
from .v2 import CodemodelV2
2
- from ..api import CMakeApiType
5
+
6
+
7
+ if typing .TYPE_CHECKING :
8
+ from ..api import CMakeApiType
3
9
4
10
CODEMODEL_API : dict [int , CMakeApiType ] = {
5
11
2 : CodemodelV2 ,
Original file line number Diff line number Diff line change
1
+ from __future__ import annotations
2
+ import typing
3
+
1
4
from .v1 import ConfigureLogV1
2
- from ..api import CMakeApiType
5
+
6
+ if typing .TYPE_CHECKING :
7
+ from ..api import CMakeApiType
3
8
4
9
CONFIGURELOG_API : dict [int , CMakeApiType ] = {
5
10
1 : ConfigureLogV1 ,
Original file line number Diff line number Diff line change
1
+ from __future__ import annotations
2
+ import typing
3
+
1
4
from .v1 import ToolchainsV1
2
- from ..api import CMakeApiType
5
+
6
+ if typing .TYPE_CHECKING :
7
+ from ..api import CMakeApiType
3
8
4
9
TOOLCHAINS_API : dict [int , CMakeApiType ] = {
5
10
1 : ToolchainsV1 ,
Original file line number Diff line number Diff line change 3
3
4
4
from cmake_file_api .errors import CMakeException
5
5
from cmake_file_api .kinds .api import CMakeApiType , OBJECT_KINDS_API
6
- from cmake_file_api .kinds .cmakeFiles .v1 import CMakeFilesV1
7
6
from cmake_file_api .reply .index .api import INDEX_API
8
7
from cmake_file_api .kinds .kind import ObjectKind
9
8
from cmake_file_api .reply .index .v1 import CMakeReplyFileV1
You can’t perform that action at this time.
0 commit comments