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
77
Ressourcenverwaltung in SWT
dbader
1
48
TDD Java Exercise
dbader
5
4.9k
A Framework for Remote Usability Evaluation on Mobile Devices
dbader
2
1.7k
Sketch 3D
dbader
1
47
Other Decks in Education
See All in Education
自己紹介 / who-am-i
yasulab
PRO
5
6.3k
1111
cbtlibrary
0
270
俺と地方勉強会 - KomeKaigi・地方勉強会への期待 -
pharaohkj
1
1.6k
Semantic Web and Web 3.0 - Lecture 9 - Web Technologies (1019888BNR)
signer
PRO
2
3.2k
KBS新事業創造体験2025_科目説明会
yasuchikawakayama
0
160
コマンドラインを見直そう(1995年からタイムリープ)
sapi_kawahara
0
660
沖ハック~のみぞうさんとハッキングチャレンジ☆~
nomizone
1
570
滑空スポーツ講習会2025(実技講習)EMFT講習 実施要領/JSA EMFT 2025 procedure
jsaseminar
0
100
Design Guidelines and Models - Lecture 5 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.3k
Node-REDで広がるプログラミング教育の可能性
ueponx
1
260
10分で学ぶ すてきなモナド
soukouki
1
140
Introdución ás redes
irocho
0
530
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
196
71k
WENDY [Excerpt]
tessaabrams
9
36k
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Building Adaptive Systems
keathley
44
2.9k
Tell your own story through comics
letsgokoyo
1
800
Why Our Code Smells
bkeepers
PRO
340
58k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Abbi's Birthday
coloredviolet
1
4.7k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
Everyday Curiosity
cassininazir
0
130
AI Search: Where Are We & What Can We Do About It?
aleyda
0
6.9k
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": ^^^^^^^^^ !