Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Forward References and Python 3 Type Hints
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Daniel Bader
July 20, 2016
Education
270
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Forward References and Python 3 Type Hints
Watch the full presentation here:
https://www.youtube.com/watch?v=AJsrxBkV3kc
Daniel Bader
July 20, 2016
More Decks by Daniel Bader
See All by Daniel Bader
How to become a better developer (Mobify Engineering Meeting)
dbader
0
43k
Raspberry-Python-Pi for Hardware Hacking Fun!
dbader
2
220
ME'13 Presentation Slides
dbader
3
1.3k
Android Services
dbader
1
85
Ressourcenverwaltung in SWT
dbader
1
60
TDD Java Exercise
dbader
5
4.9k
A Framework for Remote Usability Evaluation on Mobile Devices
dbader
1
1.8k
Sketch 3D
dbader
1
55
Other Decks in Education
See All in Education
Enterprise UI, v2
stevekinney
0
170
プログラミング言語において文字列を複数行にわたって だらだらと記載するアレ
sapi_kawahara
0
200
プロポーザルを書く技術とアンチパターン/proposal-writing-and-antipatterns
moriyuya
13
3.7k
SFプロトタイピング体験(滝中学校)
yusk1450
PRO
0
120
Antigravityを使ってGeminiAPI(NanobananaPro)と連携して挿絵メーカーを作った
yoshimura_datam
0
140
Center for Entrepreneurship Education | Science Tokyo (Institute of Science Tokyo)
sciencetokyo
PRO
0
250
Course Review - Lecture 13 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
2.4k
自己紹介 / who-am-i
yasulab
6
7.1k
2026年度春学期 統計学 第8回(オンデマンド配信回) 演習(1)・問題に対する答案の書き方 (2026. 5. 21)
akiraasano
PRO
0
180
0506
cbtlibrary
0
250
私たちはなんでテストするんだっけ? Ver.東北IT物産展2026 in 会津若松
camel_404
3
170
2026年度春学期 統計学 第13回 不確かな測定の不確かさを測る ― 不偏分散とt分布 (2026. 6. 25)
akiraasano
PRO
1
160
Featured
See All Featured
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
500
Making the Leap to Tech Lead
cromwellryan
135
10k
What does AI have to do with Human Rights?
axbom
PRO
1
2.3k
Building AI with AI
inesmontani
PRO
1
1.1k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.5k
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.8k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
370
Fireside Chat
paigeccino
42
4k
Navigating Team Friction
lara
192
16k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
290
WCS-LA-2024
lcolladotor
0
800
Transcript
Forward references and Python 3 type hints
How would you type-hint this? class MyClass: def get_instance(self): return
self
class MyClass: def get_instance(self) -> MyClass: return self ⚡⚡⚡ NameError:
name 'MyClass' is not defined
???
PEP 484
def get_instance(self) -> "MyClass": ^^^^^^^^^ !