Skip to content

Commit f492167

Browse files
authored
Update src/lightning/pytorch/core/datamodule.py
1 parent 33cda77 commit f492167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lightning/pytorch/core/datamodule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def extract_loader_info(methods: list[tuple[str, str]]) -> dict:
276276
"""Helper function to extract information for each dataloader method."""
277277
info: dict[str, Union[dataset_info, Iterable[dataset_info]]] = {}
278278
for loader_name, func_name in methods:
279-
loader_callback = getattr(self, func_name, None)
279+
loader_method = getattr(self, func_name, None)
280280

281281
try:
282282
loader = loader_method() # type: ignore

0 commit comments

Comments
 (0)