Skip to content

Commit

Permalink
move documentation of newest_change_from_file
Browse files Browse the repository at this point in the history
  • Loading branch information
lonvia committed Oct 18, 2024
1 parent ae7226e commit e3882cc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docs/reference/Replication.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
::: osmium.replication.DownloadResult


## Repliction utils
## Replication utils

::: osmium.replication.newest_change_from_file
::: osmium.replication.get_replication_header
::: osmium.replication.ReplicationHeader
3 changes: 1 addition & 2 deletions lib/replication.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,5 @@ PYBIND11_MODULE(_replication, m)
reader.close();

return handler.last_change;
},
"Find the date of the most recent change in a file.");
});
}
3 changes: 2 additions & 1 deletion src/osmium/replication/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
#
# Copyright (C) 2023 Sarah Hoffmann <[email protected]> and others.
# For a full list of authors see the git log.
from ._replication import *

from ._replication import (newest_change_from_file as newest_change_from_file)

from .server import (ReplicationServer as ReplicationServer,
OsmosisState as OsmosisState,
Expand Down
4 changes: 3 additions & 1 deletion src/osmium/replication/_replication.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@
# For a full list of authors see the git log.
import datetime

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

0 comments on commit e3882cc

Please sign in to comment.