Skip to content

Commit 760e7ef

Browse files
committed
Readme polish
1 parent 6e8ed2e commit 760e7ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pip install typenames
5353

5454
## Basic Usage
5555

56-
The main way to use the library is the `typenames` function. Calling it on a type annotation produces string annotations
56+
The main way to use the library is the `typenames` function. Calling it on a type annotation renders a string representation:
5757

5858
```python
5959
import typing
@@ -67,7 +67,7 @@ typenames(collections.abc.Callable[[int], tuple[str, ...]])
6767
#> 'Callable[[int], tuple[str, ...]]
6868
```
6969

70-
Under the hood, typenames parses a type annotation as a tree structure. If you need to see the parsed tree, using the `parse_type_tree` function. You can get the rendered string representation by calling `str(...)` on the parsed tree.
70+
Under the hood, typenames parses a type annotation as a tree structure. If you need to see the parsed tree, use the `parse_type_tree` function to return the root node. You can get the rendered string representation by calling `str(...)` on root node.
7171

7272
```python
7373
import typing

0 commit comments

Comments
 (0)