Skip to content

Commit 4c7ad8a

Browse files
committed
release: 0.3.0
1 parent 29ba3e3 commit 4c7ad8a

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ pip install tstr
2929
- `convert`: Apply conversion to a value.
3030
- `template_eq`: Check if two templates are equivalent.
3131
- `interpolation_replace`: Create a new `Interpolation` by selectively replacing attributes of an existing one.
32+
- `dedent`: `textwrap.dedent` for template strings
33+
- `template_from_parts`: Construct template strings from iterable
3234

3335
This library also provides several useful extensions where template strings can be effectively utilized.
3436
These extensions are available in the `tstr.ext` submodule, and below is a list with brief descriptions:
@@ -48,17 +50,18 @@ For more details, see the [API documentation](/docs/api.md).
4850

4951
Use the `TEMPLATE_STRING_SUPPORTED` constant to check if template strings are natively supported in your Python version.
5052

51-
For details on how the compatible backport of template string works and what similarities and differences it has with native template strings, see the [compatible template strings](docs/compat.md) documentation.
53+
For details on how the compatible backport of template string works and what similarities and differences it has with native template strings, see the [compatible template strings](/docs/compat.md) documentation.
5254

5355
# Contributing
5456

5557
This project welcomes contributions of all kinds from anyone willing to help improve it! Whether you're fixing a typo in documentation, reporting a bug, proposing a new feature, or implementing code changes - every contribution matters and is highly appreciated.
5658

5759
## Releases
5860

61+
* 0.3.0: Revamp various things
5962
* 0.2.0: Rename html_render to render_html, add `_logging` module, fix various bugs and improve documentation
6063
* 0.1.1.post1: Initial release
6164

6265
## License
6366

64-
This library is licensed under the Apache License 2.0.
67+
This library is licensed under the Apache License 2.0.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dev = [
4040
Repository = "https://github.com/ilotoki0804/tstr"
4141

4242
[tool.ruff]
43-
target-version = "py314"
43+
target-version = "py310"
4444

4545
[tool.ruff.lint]
4646
select = ["E", "UP", "W"]

src/tstr/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@
4444
"template_from_parts",
4545
"dedent",
4646
]
47-
__version__ = "0.2.0"
47+
__version__ = "0.3.0"

src/tstr/_template_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import inspect
44
import types
55
import typing
6-
from itertools import zip_longest
6+
from itertools import zip_longest # type: ignore # I have no idea why this line cause errors in Pyright, but it's probably fine.
77
from string import Formatter
88

99
from ._interpolation_tools import normalize_str

0 commit comments

Comments
 (0)