src/eric7/Graphics/ImportsDiagramBuilder.py

branch
eric7
changeset 10683
779cda568acb
parent 10439
21c28b0f9e41
child 10704
27d21e5163b8
equal deleted inserted replaced
10682:47be220abdaf 10683:779cda568acb
342 AssociationType.IMPORTS, 342 AssociationType.IMPORTS,
343 colors=self.umlView.getDrawingColors(), 343 colors=self.umlView.getDrawingColors(),
344 ) 344 )
345 self.scene.addItem(assoc) 345 self.scene.addItem(assoc)
346 346
347 def parsePersistenceData(self, version, data): # noqa: U100 347 def parsePersistenceData(self, _version, data):
348 """ 348 """
349 Public method to parse persisted data. 349 Public method to parse persisted data.
350 350
351 @param version version of the data 351 @param _version version of the data (unused)
352 @type str 352 @type str
353 @param data persisted data to be parsed 353 @param data persisted data to be parsed
354 @type str 354 @type str
355 @return flag indicating success 355 @return flag indicating success
356 @rtype bool 356 @rtype bool
387 ), 387 ),
388 } 388 }
389 389
390 return data 390 return data
391 391
392 def fromDict(self, version, data): # noqa: U100 392 def fromDict(self, _version, data):
393 """ 393 """
394 Public method to populate the class with data persisted by 'toDict()'. 394 Public method to populate the class with data persisted by 'toDict()'.
395 395
396 @param version version of the data 396 @param _version version of the data (unused)
397 @type str 397 @type str
398 @param data dictionary containing the persisted data 398 @param data dictionary containing the persisted data
399 @type dict 399 @type dict
400 @return tuple containing a flag indicating success and an info 400 @return tuple containing a flag indicating success and an info
401 message in case the diagram belongs to a different project 401 message in case the diagram belongs to a different project

eric ide

mercurial