Skip to content

Commit aabc930

Browse files
committed
bumped version
1 parent 97bf90b commit aabc930

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

CHANGES.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
Changes
22
=======
33

4+
0.6.0
5+
-----
6+
7+
Modernised the type annotations used in the ``targ`` codebase (e.g. using
8+
``list[str]`` instead of ``List[str]``). This is possible because we no longer
9+
support Python 3.8. Thanks to @sinisaos for this.
10+
11+
Added support for the new union syntax (e.g. ``str | None``). So targ now
12+
works with both of these:
13+
14+
.. code-block:: python
15+
16+
def say_hello(name: Optional[str]):
17+
print(f'Hello {name}' if name else 'Hello')
18+
19+
def say_hello(name: str | None):
20+
print(f'Hello {name}' if name else 'Hello')
21+
422
0.5.0
523
-----
624

0 commit comments

Comments
 (0)