File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -721,6 +721,10 @@ <h2 id="nest-async-io">Nest async io<a role="anchor" aria-hidden="true" tabindex
721721< span data-line > < span style ="--shiki-light:#D73A49;--shiki-dark:#F97583; "> if</ span > < span style ="--shiki-light:#005CC5;--shiki-dark:#79B8FF; "> __name__</ span > < span style ="--shiki-light:#D73A49;--shiki-dark:#F97583; "> ==</ span > < span style ="--shiki-light:#032F62;--shiki-dark:#9ECBFF; "> '__main__'</ span > < span style ="--shiki-light:#24292E;--shiki-dark:#E1E4E8; "> :</ span > </ span >
722722< span data-line > < span style ="--shiki-light:#24292E;--shiki-dark:#E1E4E8; "> asyncio.run(main())</ span > </ span >
723723< span data-line > </ span > </ code > </ pre > </ figure >
724+ < p > Resources</ p >
725+ < ul >
726+ < li > < a href ="https://jacobpadilla.com/articles/handling-asyncio-tasks " class ="external "> https://jacobpadilla.com/articles/handling-asyncio-tasks< svg aria-hidden ="true " class ="external-icon " style ="max-width:0.8em;max-height:0.8em; " viewBox ="0 0 512 512 "> < path d ="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z "> </ path > </ svg > </ a > </ li >
727+ </ ul >
724728< h2 id ="type-hints--annotations "> Type hints & Annotations< a role ="anchor " aria-hidden ="true " tabindex ="-1 " data-no-popover ="true " href ="#type-hints--annotations " class ="internal "> < svg width ="18 " height ="18 " viewBox ="0 0 24 24 " fill ="none " stroke ="currentColor " stroke-width ="2 " stroke-linecap ="round " stroke-linejoin ="round "> < path d ="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71 "> </ path > < path d ="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71 "> </ path > </ svg > </ a > </ h2 >
725729< p > Introduced in python 3.5 above it won’t force to strict type we can give any type</ p >
726730< figure data-rehype-pretty-code-figure > < pre tabindex ="0 " data-language ="python " data-theme ="github-light github-dark "> < code data-language ="python " data-theme ="github-light github-dark " style ="display:grid; "> < span data-line > </ span >
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments