Skip to content

Commit b4f954e

Browse files
committed
resume original type.
1 parent e3e5c12 commit b4f954e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lightning/pytorch/utilities/model_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def __init__(self, method: Callable[Concatenate[type[_T], _P], _R_co]) -> None:
115115
self.method = method
116116

117117
@override
118-
def __get__(self, instance: _T, cls: Optional[type[_T]] = None) -> Callable[_P, _R_co]: # type: ignore[override]
118+
def __get__(self, instance: Optional[_T], cls: Optional[type[_T]] = None) -> Callable[_P, _R_co]: # type: ignore[override]
119119
# The wrapper ensures that the method can be inspected, but not called on an instance
120120
@functools.wraps(self.method)
121121
def wrapper(*args: Any, **kwargs: Any) -> _R_co:

0 commit comments

Comments
 (0)