Answers for "circular dependencies in python"

0

circular dependencies in python

from typing import List, TYPE_CHECKING

if TYPE_CHECKING:
    from edge import Edge


class Vertex:
    def __init__(self, label: str):
        self.label = label
        self.adjacency_list: List['Edge'] = []
Posted by: Guest on July-04-2021

Browse Popular Code Answers by Language