Skip to content

Commit af9d2c6

Browse files
committed
[652] Fix types.
1 parent 887cec7 commit af9d2c6

File tree

6 files changed

+14
-12
lines changed

6 files changed

+14
-12
lines changed

aibolit/ast_framework/block_statement_graph/_block_extractors.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from typing import Callable, Dict, List, Optional, NamedTuple, Union
22

3-
from veniq.ast_framework import ASTNode, ASTNodeType
3+
from ..ast_node import ASTNode
4+
from ..ast_node_type import ASTNodeType
45
from .constants import BlockReason
56

67

aibolit/ast_framework/block_statement_graph/_nodes_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from typing import Callable, Union
2-
from networkx import DiGraph, dfs_labeled_edges
2+
from networkx import DiGraph, dfs_labeled_edges # type: ignore
33

44
from .statement import Statement
55
from .block import Block

aibolit/ast_framework/block_statement_graph/block.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from networkx import DiGraph
1+
from networkx import DiGraph # type: ignore
22
from typing import Any, Callable, Iterator, Optional, TYPE_CHECKING
33

4-
from veniq.ast_framework import ASTNode
4+
from ..ast_node import ASTNode
55
from .constants import BLOCK_REASON, ORIGIN_STATEMENT, NODE, BlockReason, NodeId
66

77
if TYPE_CHECKING:

aibolit/ast_framework/block_statement_graph/builder.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from typing import Dict, TYPE_CHECKING
2-
from networkx import DiGraph
2+
from networkx import DiGraph # type: ignore
33

4-
from veniq.ast_framework import AST, ASTNode
4+
from ..ast import AST
5+
from ..ast_node import ASTNode
56
from .constants import NODE, BLOCK_REASON, ORIGIN_STATEMENT, NodeId
67
from ._nodes_factory import NodesFactory
78
from ._block_extractors import BlockInfo, extract_blocks_from_statement

aibolit/ast_framework/block_statement_graph/statement.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from networkx import DiGraph
1+
from networkx import DiGraph # type: ignore
22
from typing import Callable, Iterator, Any, TYPE_CHECKING
33

4-
from veniq.ast_framework import ASTNode
4+
from ..ast_node import ASTNode
55
from .constants import NODE, NodeId
66

77
if TYPE_CHECKING:

test/ast_framework/test_block_statement_graph.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
from pathlib import Path
33
from unittest import TestCase
44

5-
from veniq.ast_framework.block_statement_graph import build_block_statement_graph, Block, Statement
6-
from veniq.ast_framework.block_statement_graph.constants import BlockReason
7-
from veniq.ast_framework import AST, ASTNodeType
8-
from veniq.utils.ast_builder import build_ast
5+
from aibolit.ast_framework.block_statement_graph import build_block_statement_graph, Block, Statement
6+
from aibolit.ast_framework.block_statement_graph.constants import BlockReason
7+
from aibolit.ast_framework import AST, ASTNodeType
8+
from aibolit.utils.ast_builder import build_ast
99

1010

1111
class BlockStatementTestCase(TestCase):

0 commit comments

Comments
 (0)