334 topToBottom=True, |
334 topToBottom=True, |
335 colors=self.umlView.getDrawingColors(), |
335 colors=self.umlView.getDrawingColors(), |
336 ) |
336 ) |
337 self.scene.addItem(assoc) |
337 self.scene.addItem(assoc) |
338 |
338 |
339 def parsePersistenceData(self, version, data): # noqa: U100 |
339 def parsePersistenceData(self, _version, data): |
340 """ |
340 """ |
341 Public method to parse persisted data. |
341 Public method to parse persisted data. |
342 |
342 |
343 @param version version of the data |
343 @param _version version of the data (unused) |
344 @type str |
344 @type str |
345 @param data persisted data to be parsed |
345 @param data persisted data to be parsed |
346 @type str |
346 @type str |
347 @return flag indicating success |
347 @return flag indicating success |
348 @rtype bool |
348 @rtype bool |
379 ), |
379 ), |
380 } |
380 } |
381 |
381 |
382 return data |
382 return data |
383 |
383 |
384 def fromDict(self, version, data): # noqa: U100 |
384 def fromDict(self, _version, data): |
385 """ |
385 """ |
386 Public method to populate the class with data persisted by 'toDict()'. |
386 Public method to populate the class with data persisted by 'toDict()'. |
387 |
387 |
388 @param version version of the data |
388 @param _version version of the data (unused) |
389 @type str |
389 @type str |
390 @param data dictionary containing the persisted data |
390 @param data dictionary containing the persisted data |
391 @type dict |
391 @type dict |
392 @return tuple containing a flag indicating success and an info |
392 @return tuple containing a flag indicating success and an info |
393 message in case the diagram belongs to a different project |
393 message in case the diagram belongs to a different project |