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
Daniel Bader
July 20, 2016
Education
0
260
Forward References and Python 3 Type Hints
Watch the full presentation here:
https://www.youtube.com/watch?v=AJsrxBkV3kc
Daniel Bader
July 20, 2016
Tweet
Share
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.2k
Android Services
dbader
1
80
Ressourcenverwaltung in SWT
dbader
1
50
TDD Java Exercise
dbader
5
4.9k
A Framework for Remote Usability Evaluation on Mobile Devices
dbader
2
1.7k
Sketch 3D
dbader
1
49
Other Decks in Education
See All in Education
Gluon Recruit Deck
gluon
0
110
Multimodal Interaction - Lecture 3 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
2k
Leveraging LLMs for student feedback in introductory data science courses (Stats Up AI)
minecr
1
230
自己紹介 / who-am-i
yasulab
6
6.4k
コマンドラインを見直そう(1995年からタイムリープ)
sapi_kawahara
0
690
Activité_5_-_Les_indicateurs_du_climat_global.pdf
bernhardsvt
0
170
TypeScript初心者向け完全ガイド
mickey_kubo
1
150
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.2k
Introduction - Lecture 1 - Next Generation User Interfaces (4018166FNR)
signer
PRO
2
4.4k
L'artisanat logiciel à l'heure du numérique responsable
thirion
0
110
計算物理におけるGitの使い方 / 01-c-compphys
kaityo256
PRO
1
190
栃木にいても「だいじ」だっぺ〜! 栃木&全国アジャイルコミュニティへの参加・運営の魅力
sasakendayo
1
170
Featured
See All Featured
Building the Perfect Custom Keyboard
takai
2
700
A Soul's Torment
seathinner
5
2.4k
Leo the Paperboy
mayatellez
4
1.5k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
750
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
110
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
83
Become a Pro
speakerdeck
PRO
31
5.8k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
140
Why Our Code Smells
bkeepers
PRO
340
58k
Facilitating Awesome Meetings
lara
57
6.8k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
190
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": ^^^^^^^^^ !