Skip to content

Commit 18f3478

Browse files
committed
modify the readme
1 parent 28b3ff5 commit 18f3478

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,21 @@ See more from https://www.jetbrains.com/help/pycharm/2017.1/type-hinting-in-pych
1111

1212
Move cursor to the element, and press `ctrl shift Y` to add the type comments.
1313

14-
![typing-comments-added](imgs/typing-comments-added.gif)
14+
![typing-comments-added](imgs/typing-comments-added.gif)
15+
16+
17+
---
18+
19+
Before:
20+
21+
```python
22+
def greeting_with_type(name):
23+
return 'Hello ' + name
24+
```
25+
26+
After:
27+
```python
28+
def greeting_with_type(name): # type: (str) -> str
29+
return 'Hello ' + name
30+
31+
```

0 commit comments

Comments
 (0)