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
240
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
42k
Raspberry-Python-Pi for Hardware Hacking Fun!
dbader
2
210
ME'13 Presentation Slides
dbader
3
1k
Android Services
dbader
1
68
Ressourcenverwaltung in SWT
dbader
1
37
TDD Java Exercise
dbader
5
4.8k
A Framework for Remote Usability Evaluation on Mobile Devices
dbader
2
1.5k
Sketch 3D
dbader
1
42
Other Decks in Education
See All in Education
Use Cases and Course Review - Lecture 8 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
870
情報処理工学問題集 /infoeng_practices
kfujita
0
280
Algo de fontes de alimentación
irocho
1
480
Ch2_-_Partie_3.pdf
bernhardsvt
0
130
1127
cbtlibrary
0
180
1113
cbtlibrary
0
290
Semantic Web and Web 3.0 - Lecture 9 - Web Technologies (1019888BNR)
signer
PRO
2
2.7k
リバースバケットリスト 〜 「死ぬまでにやることリスト」の欠点と対処法
takibi333
0
120
新人研修の課題と未来を考える
natsukokanda1225
0
1.3k
1106
cbtlibrary
0
450
2024年度秋学期 統計学 第7回 データの関係を知る(2)ー 回帰と決定係数 (2024. 11. 6)
akiraasano
PRO
0
150
JAWS-UGを通じてアウトプット活動を楽しんでみませんか? #jawsug_tochigi
masakiokuda
0
170
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Building Better People: How to give real-time feedback that sticks.
wjessup
366
19k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
27
1.9k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7.1k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Writing Fast Ruby
sferik
628
61k
How to train your dragon (web standard)
notwaldorf
91
5.8k
Become a Pro
speakerdeck
PRO
26
5.1k
Building a Scalable Design System with Sketch
lauravandoore
460
33k
Optimising Largest Contentful Paint
csswizardry
34
3.1k
Into the Great Unknown - MozCon
thekraken
35
1.6k
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": ^^^^^^^^^ !