Skip to content

Commit

Permalink
DAR103: (optional, ...) -> (...)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kss2k committed Oct 22, 2024
1 parent 0e4979d commit 150be90
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/rwrapr/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def library(env_name: str, interactive: bool = True) -> Renv:
Args:
env_name (str): The name of the R package to load.
interactive (bool, optional): If `True`, interactively prompts the user
interactive (bool): If `True`, interactively prompts the user
to install missing R packages. Defaults to `True`.
Returns:
Expand All @@ -40,7 +40,7 @@ def importr(env_name: str, interactive: bool = True) -> Renv:
Args:
env_name (str): The name of the R package to load.
interactive (bool, optional): If `True`, interactively prompts the user
interactive (bool): If `True`, interactively prompts the user
to install missing R packages. Defaults to `True`.
Returns:
Expand Down
3 changes: 1 addition & 2 deletions src/rwrapr/rattributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ def get_Rattributes(x: Any, exclude: list[str] | None = None) -> Any:
attributes
}
"""
)
""")
return attributes(x, exclude)


Expand Down
2 changes: 1 addition & 1 deletion src/rwrapr/renv.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(self, env_name: str | None, interactive: bool = True) -> None:
Args:
env_name (str | None): The name of the R package to load. If `None` or an empty string, the environment is not initialized.
interactive (bool, optional): If True, prompts the user to install missing R packages. Defaults to True.
interactive (bool): If True, prompts the user to install missing R packages. Defaults to True.
"""
if (env_name is None) or (env_name == ""):
self.__base_lib__: rpkg.Package | None = None
Expand Down

0 comments on commit 150be90

Please sign in to comment.