From e399516cb5b7f9d3bdb55280916aca6f6c9f8ca5 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Tue, 12 Jan 2021 12:53:58 +0000 Subject: [PATCH] Remove methods with unnecessary super delegation. --- monai/transforms/utility/dictionary.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/monai/transforms/utility/dictionary.py b/monai/transforms/utility/dictionary.py index 21c30f6010..08d753e823 100644 --- a/monai/transforms/utility/dictionary.py +++ b/monai/transforms/utility/dictionary.py @@ -308,14 +308,6 @@ class DeleteItemsd(MapTransform): It will remove the key-values and copy the others to construct a new dictionary. """ - def __init__(self, keys: KeysCollection) -> None: - """ - Args: - keys: keys of the corresponding items to be transformed. - See also: :py:class:`monai.transforms.compose.MapTransform` - """ - super().__init__(keys) - def __call__(self, data): return {key: val for key, val in data.items() if key not in self.keys} @@ -326,14 +318,6 @@ class SelectItemsd(MapTransform): It will copy the selected key-values and construct and new dictionary. """ - def __init__(self, keys): - """ - Args: - keys: keys of the corresponding items to be transformed. - See also: :py:class:`monai.transforms.compose.MapTransform` - """ - super().__init__(keys) - def __call__(self, data): result = {key: val for key, val in data.items() if key in self.keys} return result