Skip to content

Commit

Permalink
add docstring to version.setbase
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasha10 committed Feb 24, 2024
1 parent d4009b4 commit de3fbcc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hydra/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ def getbase() -> Optional[Version]:


def setbase(ver: Any) -> None:
"""
Set the `version_base` parameter, which is used to support backward compatibility
with older versions of Hydra.
"""
if type(ver) is type(_UNSPECIFIED_):
deprecation_warning(
message=dedent(
Expand Down

0 comments on commit de3fbcc

Please sign in to comment.