Skip to content

Commit 86cff9b

Browse files
fix
1 parent 357ebfb commit 86cff9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aws_encryption_sdk/internal/deprecation.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def decorator(cls):
1616
# and cannot take any args or kwargs.
1717
if cls.__init__ is object.__init__:
1818
# Make a new init that just emits this deprecation warning.
19-
def new_init(self): # pylint: disable=unused-argument
19+
def new_init(self, *args, **kwargs): # pylint: disable=unused-argument
2020
warnings.warn(f"{cls.__name__} is deprecated: {reason}",
2121
category=DeprecationWarning, stacklevel=2)
2222
else:
@@ -32,4 +32,4 @@ def new_init(self, *args, **kwargs):
3232
cls.__init__ = new_init
3333
return cls
3434

35-
return decorator
35+
return decorator

0 commit comments

Comments
 (0)