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.2k
Android Services
dbader
1
76
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
東大1年生にJulia教えてみた
matsui_528
7
11k
HyRead2526
cbtlibrary
0
190
2025年の本当に大事なAI動向まとめ
frievea
0
160
Microsoft Office 365
matleenalaakso
0
2.1k
LotusScript でエージェント情報を出力してみた
harunakano
0
120
NUTMEG紹介スライド
mugiiicha
0
830
令和エンジニアの学習法 〜 生成AIを使って挫折を回避する 〜
moriga_yuduru
0
230
ThingLink
matleenalaakso
28
4.3k
ロータリー国際大会について~国際大会に参加しよう~:古賀 真由美 会員(2720 Japan O.K. ロータリーEクラブ・(有)誠邦産業 取締役)
2720japanoke
1
770
AWS re_Invent に全力で参加したくて筋トレを頑張っている話
amarelo_n24
1
120
CSS3 and Responsive Web Design - Lecture 5 - Web Technologies (1019888BNR)
signer
PRO
1
3.1k
Cifrado asimétrico
irocho
0
380
Featured
See All Featured
Facilitating Awesome Meetings
lara
57
6.7k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
1
43
Measuring & Analyzing Core Web Vitals
bluesmoon
9
740
Are puppies a ranking factor?
jonoalderson
1
2.6k
YesSQL, Process and Tooling at Scale
rocio
174
15k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.8k
Amusing Abliteration
ianozsvald
0
90
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
48
Leading Effective Engineering Teams in the AI Era
addyosmani
9
1.5k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
110
Technical Leadership for Architectural Decision Making
baasie
1
220
Building Applications with DynamoDB
mza
96
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": ^^^^^^^^^ !