Skip to content

Commit 73139b7

Browse files
authored
Publish types. (#35)
1 parent 1736196 commit 73139b7

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

Diff for: CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ releases are available on [PyPI](https://pypi.org/project/pytask-r) and
99

1010
- {pull}`33` deprecates INI configurations and aligns the plugin with pytask v0.3.
1111
- {pull}`34` adds mypy, ruff and refurb.
12+
- {pull}`35` publishes types.
1213

1314
## 0.2.0 - 2022-04-16
1415

Diff for: MANIFEST.in

+2
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ exclude tox.ini
88

99
include LICENSE
1010
include README.md
11+
12+
recursive-include src py.typed

Diff for: src/pytask_r/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def pytask_parse_config(config: dict[str, Any]) -> None:
2121
config["r_options"] = _parse_value_or_whitespace_option(config.get("r_options"))
2222

2323

24-
def _parse_value_or_whitespace_option(value: str | None) -> None | str | list[str]:
24+
def _parse_value_or_whitespace_option(value: Any) -> list[str] | None:
2525
"""Parse option which can hold a single value or values separated by new lines."""
2626
if value is None:
2727
return None

Diff for: src/pytask_r/py.typed

Whitespace-only changes.

Diff for: src/pytask_r/shared.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99

1010

1111
def r(
12-
script: str | Path = None,
12+
*,
13+
script: str | Path,
1314
options: str | Iterable[str] | None = None,
1415
serializer: str | Callable[..., str] | str | None = None,
1516
suffix: str | None = None,
@@ -23,7 +24,7 @@ def r(
2324
2425
Parameters
2526
----------
26-
script : Union[str, Path]
27+
script : str | Path
2728
The path to the R script which is executed.
2829
options : str | Iterable[str]
2930
One or multiple command line options passed to Rscript.

0 commit comments

Comments
 (0)