File tree Expand file tree Collapse file tree
teachprogramming/static/projects/language_features Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,4 +96,13 @@ Further reading
9696---------------
9797
9898* [ How to Use Fetch with async/await] ( https://dmitripavlutin.com/javascript-fetch-async-await/ )
99- * Concurrent fetches
99+ * Concurrent fetches
100+
101+
102+ ---
103+
104+
105+ ``` python
106+ t.Callable[[URLParams], t.Awaitable[APIPayload]]
107+ ```
108+ Explanation of t.Awaitable pattern https://stackoverflow.com/a/59177557/3356840
Original file line number Diff line number Diff line change 1+ https://peps.python.org/pep-0584/#more-than-one-way-to-do-it
2+ > doesn’t say that there should be Only One Way To Do It. But it does have a prohibition against allowing “more than one way to do it”.
3+
4+ Concatenation operator: a + b
5+ In-place concatenation operator: a += b
6+ Slice assignment: a[ len(a):] = b
7+ Sequence unpacking: [ * a, * b]
8+ Extend method: a.extend(b)
You can’t perform that action at this time.
0 commit comments