Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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'] = []
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #circular #dependencies #python
ADD COMMENT
Topic
Name
2+2 =