@@ -75,7 +75,7 @@ def __init__(
7575 "`forward_module` must be a `LightningModule` instance or have an attribute `.module` pointing to one,"
7676 f" got: { forward_module .__class__ .__qualname__ } "
7777 )
78- # TODO: In v1.10 .0, remove the Optional type from forward_module and remove the assertion
78+ # TODO: In v2.0 .0, remove the Optional type from forward_module and remove the assertion
7979 assert forward_module is not None
8080 self ._forward_module = forward_module
8181
@@ -118,11 +118,11 @@ def _validate_init_arguments(
118118 pl_module : Optional [Union ["pl.LightningModule" , _LightningPrecisionModuleWrapperBase ]] = None ,
119119 forward_module : Optional [Union ["pl.LightningModule" , _LightningPrecisionModuleWrapperBase ]] = None ,
120120 ) -> None :
121- # TODO: In v1.10 .0, remove this method and mark the forward_module init argument in all subclasses as required
121+ # TODO: In v2.0 .0, remove this method and mark the forward_module init argument in all subclasses as required
122122 if pl_module is not None :
123123 rank_zero_deprecation (
124124 f"The argument `pl_module` in `{ cls .__name__ } ` is deprecated in v1.8.0 and will be removed in"
125- " v1.10 .0. Please use `forward_module` instead."
125+ " v2.0 .0. Please use `forward_module` instead."
126126 )
127127 elif forward_module is None :
128128 raise ValueError ("Argument `forward_module` is required." )
@@ -133,7 +133,7 @@ def unwrap_lightning_module(wrapped_model: nn.Module, _suppress_warning: bool =
133133 attributes on the wrapper.
134134
135135 .. deprecated:: v1.8.0
136- The function ``unwrap_lightning_module`` is deprecated in v1.8.0 and will be removed in v1.10 .0. Access the
136+ The function ``unwrap_lightning_module`` is deprecated in v1.8.0 and will be removed in v2.0 .0. Access the
137137 ``LightningModule`` directly through the strategy attribute ``Strategy.lightning_module``.
138138
139139 Raises:
@@ -142,7 +142,7 @@ def unwrap_lightning_module(wrapped_model: nn.Module, _suppress_warning: bool =
142142 """
143143 if not _suppress_warning :
144144 rank_zero_deprecation (
145- "The function `unwrap_lightning_module` is deprecated in v1.8.0 and will be removed in v1.10 .0. Access the"
145+ "The function `unwrap_lightning_module` is deprecated in v1.8.0 and will be removed in v2.0 .0. Access the"
146146 " `LightningModule` directly through the strategy attribute `Strategy.lightning_module`."
147147 )
148148 model = wrapped_model
0 commit comments