Skip to content

Commit

Permalink
debugs pyright type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
songololo committed Jul 4, 2022
1 parent 7fada11 commit f1a4c5c
Show file tree
Hide file tree
Showing 3 changed files with 231 additions and 213 deletions.
8 changes: 4 additions & 4 deletions cityseer/tools/graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ def _merge_parallel_edges(
start_nd_key: NodeKey
end_nd_key: NodeKey
edge_data: EdgeData
for start_nd_key, end_nd_key, edge_data in tqdm(
for start_nd_key, end_nd_key, edge_data in tqdm( # type: ignore
nx_multigraph.edges(data=True), disable=config.QUIET_MODE
): # pylint: disable=line-too-long
# if only one edge is associated with this node pair, then add
Expand Down Expand Up @@ -1426,7 +1426,7 @@ def nx_decompose(nx_multigraph: MultiGraph, decompose_max: float) -> MultiGraph:
start_nd_key: NodeKey
end_nd_key: NodeKey
edge_data: EdgeData
for start_nd_key, end_nd_key, edge_data in tqdm(
for start_nd_key, end_nd_key, edge_data in tqdm( # type: ignore
nx_multigraph.edges(data=True), disable=config.QUIET_MODE
): # pylint: disable=line-too-long
# test for x, y in start coordinates
Expand Down Expand Up @@ -1636,7 +1636,7 @@ def set_live(start_nd_key: NodeKey, end_nd_key: NodeKey, dual_node_key: NodeKey)
start_nd_key: NodeKey
end_nd_key: NodeKey
edge_idx: int
for start_nd_key, end_nd_key, edge_idx in tqdm(
for start_nd_key, end_nd_key, edge_idx in tqdm( # type: ignore
nx_multigraph.edges(data=False, keys=True), disable=config.QUIET_MODE
):
# get the first and second half geoms
Expand Down Expand Up @@ -2056,7 +2056,7 @@ def _process_node(nd_key: NodeKey) -> tuple[float, float]:
end_nd_key: NodeKey
edge_idx: int
edge_data: EdgeData
for start_nd_key, end_nd_key, edge_idx, edge_data in tqdm(
for start_nd_key, end_nd_key, edge_idx, edge_data in tqdm( # type: ignore
nx_multidigraph.edges(data=True, keys=True), disable=config.QUIET_MODE
):
edge_data = cast(EdgeData, edge_data) # type: ignore
Expand Down
Loading

0 comments on commit f1a4c5c

Please sign in to comment.