Skip to content

Commit e3882cc

Browse files
committed
move documentation of newest_change_from_file
1 parent ae7226e commit e3882cc

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

docs/reference/Replication.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
::: osmium.replication.DownloadResult
88

99

10-
## Repliction utils
10+
## Replication utils
1111

12+
::: osmium.replication.newest_change_from_file
1213
::: osmium.replication.get_replication_header
1314
::: osmium.replication.ReplicationHeader

lib/replication.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,5 @@ PYBIND11_MODULE(_replication, m)
4242
reader.close();
4343

4444
return handler.last_change;
45-
},
46-
"Find the date of the most recent change in a file.");
45+
});
4746
}

src/osmium/replication/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
#
55
# Copyright (C) 2023 Sarah Hoffmann <lonvia@denofr.de> and others.
66
# For a full list of authors see the git log.
7-
from ._replication import *
7+
8+
from ._replication import (newest_change_from_file as newest_change_from_file)
89

910
from .server import (ReplicationServer as ReplicationServer,
1011
OsmosisState as OsmosisState,

src/osmium/replication/_replication.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@
66
# For a full list of authors see the git log.
77
import datetime
88

9-
def newest_change_from_file(filename: str) -> datetime.datetime: ...
9+
def newest_change_from_file(filename: str) -> datetime.datetime:
10+
""" Find the data of the most recent change in a file.
11+
"""

0 commit comments

Comments
 (0)