@@ -82,14 +82,14 @@ def copy(
8282
8383
8484@dataclass (frozen = True )
85- class dictAttributeStorage (AttributeStorage ):
85+ class DictAttributeStorage (AttributeStorage ):
8686 """dictionary-based storage area for the graph, vertex and edge attributes
8787 of a graph.
8888 """
8989
9090 graph_attributes : dict [str , Any ] = field (default_factory = dict )
91- vertex_attributes : dict [str , list ] = field (default_factory = dict )
92- edge_attributes : dict [str , Any ] = field (default_factory = dict )
91+ vertex_attributes : dict [str , list [ Any ] ] = field (default_factory = dict )
92+ edge_attributes : dict [str , list [ Any ] ] = field (default_factory = dict )
9393
9494 def add_vertices (self , graph , n : int ) -> None :
9595 pass
@@ -148,12 +148,12 @@ def _detach_storage_from_graph(graph) -> None:
148148
149149
150150class AttributeHandler (AttributeHandlerBase ):
151- """Attribute handler implementation that uses a dictAttributeStorage_
151+ """Attribute handler implementation that uses a DictAttributeStorage_
152152 as its storage backend.
153153 """
154154
155155 def init (self , graph , attr ):
156- _assign_storage_to_graph (graph , dictAttributeStorage ())
156+ _assign_storage_to_graph (graph , DictAttributeStorage ())
157157
158158 def destroy (self , graph ) -> None :
159159 storage = _get_storage_from_graph (graph )
0 commit comments