Consistent typing with function this is overriding

The function in the parent class has changed its type in commit 7968fe6d56205b20be9ba47e5a19be9f5914b084. This one should also change type.
This commit is contained in:
Ghostkeeper 2020-06-15 13:58:12 +02:00
parent 09298eac93
commit 0f3a977a58
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -465,7 +465,7 @@ class XmlMaterialProfile(InstanceContainer):
return "materials"
@classmethod
def getVersionFromSerialized(cls, serialized: str) -> Optional[int]:
def getVersionFromSerialized(cls, serialized: str) -> int:
data = ET.fromstring(serialized)
version = XmlMaterialProfile.Version