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
【dip】「なりたい自分」に近づくための、「自分と向き合う」小さな振り返り
dip_tech
PRO
0
230
TeXで変える教育現場
doratex
1
12k
核軍備撤廃に向けた次の大きな一歩─核兵器を先には使わないと核保有国が約束すること
hide2kano
0
230
【ベテランCTOからのメッセージ】AIとか組織とかキャリアとか気になることはあるけどさ、個人の技術力から目を背けないでやっていきましょうよ
netmarkjp
2
1.8k
RGBでも蛍光を!? / RayTracingCamp11
kugimasa
2
380
JavaScript - Lecture 6 - Web Technologies (1019888BNR)
signer
PRO
0
3.1k
自己紹介 / who-am-i
yasulab
PRO
5
6.3k
Use Cases and Course Review - Lecture 8 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
1.4k
Adobe Express
matleenalaakso
1
8.1k
国際卓越研究大学計画|Science Tokyo(東京科学大学)
sciencetokyo
PRO
0
47k
外国籍エンジニアの挑戦・新卒半年後、気づきと成長の物語
hypebeans
0
730
the difficulty into words
ukky86
0
360
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
160
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
140
Bash Introduction
62gerente
615
210k
Amusing Abliteration
ianozsvald
0
96
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.8k
Practical Orchestrator
shlominoach
191
11k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
0
430
The Curious Case for Waylosing
cassininazir
0
230
WCS-LA-2024
lcolladotor
0
440
Deep Space Network (abreviated)
tonyrice
0
45
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": ^^^^^^^^^ !