diff --git a/swh/model/from_disk.py b/swh/model/from_disk.py index 160ea7395ffbc2ac8dd30dbfa9350b6cd1d180cb..fea1e32403af0bd1b7ac49834713b9c989c666c0 100644 --- a/swh/model/from_disk.py +++ b/swh/model/from_disk.py @@ -71,9 +71,9 @@ class FromDiskType(model._StringCompatibleEnum): # them a hand to let them handle compatibility in a smoother way. # # Remove this compatibility trick once this user have been migrated -DiskBackedContent = deprecated( - version="v6.13.0", reason="Use model.Content.object_type instead" -)(model.Content) +@deprecated(version="v6.13.0", reason="Use model.Content.object_type instead") +def DiskBackedContent(*args, **kwargs): + return model.Content(*args, **kwargs) @attr.s(frozen=True, slots=True)