Skip to content

Commit ab28132

Browse files
authored
auto updates (#6568)
Signed-off-by: monai-bot <monai.miccai2019@gmail.com> Signed-off-by: monai-bot <monai.miccai2019@gmail.com>
1 parent e597994 commit ab28132

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

monai/transforms/compose.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def __call__(self, input_, start=0, end=None, threading=False, lazy: bool | None
326326
end=end,
327327
map_items=self.map_items,
328328
unpack_items=self.unpack_items,
329-
lazy=self.lazy, # type: ignore
329+
lazy=self.lazy,
330330
overrides=self.overrides,
331331
threading=threading,
332332
log_stats=self.log_stats,
@@ -466,7 +466,7 @@ def __call__(self, data, start=0, end=None, threading=False, lazy: str | bool |
466466
end=end,
467467
map_items=self.map_items,
468468
unpack_items=self.unpack_items,
469-
lazy=self.lazy, # type: ignore
469+
lazy=self.lazy,
470470
overrides=self.overrides,
471471
threading=threading,
472472
log_stats=self.log_stats,

monai/transforms/lazy/dictionary.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
# See the License for the specific language governing permissions and
1010
# limitations under the License.
1111

12-
1312
from __future__ import annotations
1413

1514
from monai.config import KeysCollection

monai/transforms/spatial/array.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -649,9 +649,7 @@ def __call__(self, data_array: torch.Tensor, lazy: bool | None = None) -> torch.
649649
)
650650
spatial_ornt = nib.orientations.ornt_transform(src, dst)
651651
lazy_ = self.lazy if lazy is None else lazy
652-
return orientation(
653-
data_array, affine_np, spatial_ornt, lazy=lazy_, transform_info=self.get_transform_info()
654-
) # type: ignore[no-any-return]
652+
return orientation(data_array, affine_np, spatial_ornt, lazy=lazy_, transform_info=self.get_transform_info())
655653

656654
def inverse(self, data: torch.Tensor) -> torch.Tensor:
657655
transform = self.pop_transform(data)

0 commit comments

Comments
 (0)