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
210
ME'13 Presentation Slides
dbader
3
1.1k
Android Services
dbader
1
71
Ressourcenverwaltung in SWT
dbader
1
42
TDD Java Exercise
dbader
5
4.9k
A Framework for Remote Usability Evaluation on Mobile Devices
dbader
2
1.6k
Sketch 3D
dbader
1
44
Other Decks in Education
See All in Education
Padlet opetuksessa
matleenalaakso
4
14k
登壇未経験者のための登壇戦略~LTは設計が9割!!!~
masakiokuda
3
670
Avoin jakaminen ja Creative Commons -lisenssit
matleenalaakso
0
2k
万博非公式マップとFOSS4G
barsaka2
0
1.1k
チーム開発における責任と感謝の話
ssk1991
0
250
日本の情報系社会人院生のリアル -JAIST 修士編-
yurikomium
1
120
2025年度春学期 統計学 第11回 分布の「型」を考える ー 確率分布モデルと正規分布 (2025. 6. 19)
akiraasano
PRO
0
170
生成AIとの上手な付き合い方【公開版】/ How to Get Along Well with Generative AI (Public Version)
handlename
0
630
フィードバックの伝え方、受け身のココロ / The Way of Feedback: Words and the Receiving Heart
spring_aki
1
140
Test-NUTMEG紹介スライド
mugiiicha
0
160
みんなのコードD&I推進レポート2025 テクノロジー分野のジェンダーギャップとその取り組みについて
codeforeveryone
0
210
2025年度春学期 統計学 第12回 分布の平均を推測する ー 区間推定 (2025. 6. 26)
akiraasano
PRO
0
160
Featured
See All Featured
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Making Projects Easy
brettharned
117
6.4k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.1k
Site-Speed That Sticks
csswizardry
10
820
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.1k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3k
Git: the NoSQL Database
bkeepers
PRO
431
66k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
126
53k
A Modern Web Designer's Workflow
chriscoyier
696
190k
Navigating Team Friction
lara
189
15k
Agile that works and the tools we love
rasmusluckow
330
21k
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": ^^^^^^^^^ !