Renamed the "__get_next_uri" function to "__get_next" in the "accounting.utils.next_uri" module.

This commit is contained in:
依瑪貓 2023-05-23 07:10:30 +08:00
parent 3b8a2e3bb1
commit 822c8fc49b

View File

@ -41,7 +41,7 @@ def inherit_next(uri: str) -> str:
:param uri: The URI.
:return: The URI with the current next URI added at the query argument.
"""
next_uri: str | None = __get_next_uri()
next_uri: str | None = __get_next()
return uri if next_uri is None else __set_next(uri, next_uri)
@ -51,11 +51,11 @@ def or_next(uri: str) -> str:
:param uri: The URI.
:return: The next URI or the supplied URI.
"""
next_uri: str | None = __get_next_uri()
next_uri: str | None = __get_next()
return uri if next_uri is None else next_uri
def __get_next_uri() -> str | None:
def __get_next() -> str | None:
"""Returns the valid next URI.
:return: The valid next URI.