Skip to content

Commit d5546bc

Browse files
committed
f - compat
1 parent f49ee07 commit d5546bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OMPython/compatibility_v400.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def depreciated(cls):
1616
Helper functions to do the decoration part.
1717
"""
1818

19-
class Wrapper:
19+
class Wrapper(cls):
2020
"""
2121
Wrapper to define the depreciation message.
2222
"""
@@ -32,7 +32,7 @@ def __init__(self, *args, **kwargs):
3232
stacklevel=3,
3333
)
3434

35-
self.wrap = cls(*args, **kwargs)
35+
super().__init__(*args, **kwargs)
3636

3737
return Wrapper
3838

0 commit comments

Comments
 (0)