Skip to content

Commit b354a48

Browse files
authored
Update README.md
1 parent 9bef014 commit b354a48

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Yes, **type hints are always on.** No hidden stuff.
77

8-
## Example
8+
## Examples
99
```python
1010
from exacting import exact
1111

@@ -31,6 +31,17 @@ Person(name="John", age=1.23)
3131
# ...at attribute 'age'
3232
```
3333

34+
Also, you can type anything! (Almost.) Cool.
35+
36+
```python
37+
@exact
38+
class Stuff:
39+
banana: str | int | bool
40+
apple: Optional[str]
41+
42+
# ...they all work!
43+
```
44+
3445
***
3546

3647
WIP. More APIs soon.

0 commit comments

Comments
 (0)