Skip to content

Commit 9ce4432

Browse files
committed
Release 2.21
1 parent 0d58476 commit 9ce4432

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/lightning/app/core/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,9 +371,9 @@ def _collect_deltas_from_ui_and_work_queues(self) -> List[Union[Delta, _APIReque
371371

372372
if work:
373373
delta = _delta_to_app_state_delta(
374-
self.root,
374+
self.root, # type: ignore[arg-type]
375375
work,
376-
deepcopy(delta.delta), # type: ignore[arg-type]
376+
deepcopy(delta.delta),
377377
)
378378
deltas.append(delta)
379379
else:

src/lightning/data/processing/dns.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ def optimize_dns(enable: bool) -> None:
2727
not enable and any("127.0.0.1" in line for line in lines)
2828
): # noqa E501
2929
Popen(
30-
f"sudo /home/zeus/miniconda3/envs/cloudspace/bin/python -c 'from lightning.data.processing.dns import _optimize_dns; _optimize_dns({enable})'",
30+
f"sudo /home/zeus/miniconda3/envs/cloudspace/bin/python -c 'from lightning.data.processing.dns import _optimize_dns; _optimize_dns({enable})'", # noqa E501
3131
shell=True,
32-
).wait() # noqa E501
32+
).wait()
3333

3434

3535
def _optimize_dns(enable: bool) -> None:

src/lightning/fabric/strategies/fsdp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ def _distributed_checkpoint_save(converted_state: Dict[str, Any], path: Path) ->
927927

928928
# let torch automatically infer the writer to use. This might also support fsspec paths in the future
929929
# https://github.com/pytorch/pytorch/issues/118036
930-
save(converted_state, checkpoint_id=path) # type: ignore[call-arg]
930+
save(converted_state, checkpoint_id=path)
931931
else: # deprecated
932932
from torch.distributed.checkpoint import FileSystemWriter
933933

@@ -946,7 +946,7 @@ def _distributed_checkpoint_load(module_state: Dict[str, Any], path: Path) -> No
946946

947947
# let torch automatically infer the reader to use. This might also support fsspec paths in the future
948948
# https://github.com/pytorch/pytorch/issues/118036
949-
load(module_state, checkpoint_id=path) # type: ignore[call-arg]
949+
load(module_state, checkpoint_id=path)
950950
else: # deprecated
951951
from torch.distributed.checkpoint import FileSystemReader
952952

src/lightning/pytorch/loggers/neptune.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def run(self) -> "Run":
403403
@override
404404
@rank_zero_only
405405
@_catch_inactive
406-
def log_hyperparams(self, params: Union[Dict[str, Any], Namespace]) -> None: # type: ignore[override]
406+
def log_hyperparams(self, params: Union[Dict[str, Any], Namespace]) -> None:
407407
r"""Log hyperparameters to the run.
408408
409409
Hyperparameters will be logged under the "<prefix>/hyperparams" namespace.

src/version.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.2.0.post0
1+
2.2.1

0 commit comments

Comments
 (0)