Skip to content

Commit 91624dd

Browse files
committed
lint
1 parent 064c141 commit 91624dd

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/lib.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,12 @@ struct Lighthouse {
225225
#[pymethods]
226226
impl Lighthouse {
227227
#[new]
228-
fn new(py: Python<'_>, bind: String, min_replicas: u64, join_timeout_ms: Option<u64>) -> PyResult<Self> {
228+
fn new(
229+
py: Python<'_>,
230+
bind: String,
231+
min_replicas: u64,
232+
join_timeout_ms: Option<u64>,
233+
) -> PyResult<Self> {
229234
let join_timeout_ms = join_timeout_ms.unwrap_or(100);
230235

231236
py.allow_threads(move || {

torchft/torchft.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ class Manager:
2323
def shutdown(self) -> None: ...
2424

2525
class Lighthouse:
26-
def __init__(self, bind: str, min_replicas: int, join_timeout_ms: Optional[int]) -> None: ...
26+
def __init__(self, bind: str, min_replicas: int, join_timeout_ms: Optional[int] = None) -> None: ...
2727
def address(self) -> str: ...
2828
def shutdown(self) -> None: ...

0 commit comments

Comments
 (0)