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
230
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
200
ME'13 Presentation Slides
dbader
3
980
Android Services
dbader
1
68
Ressourcenverwaltung in SWT
dbader
1
35
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
Blogit opetuksessa
matleenalaakso
0
1.6k
Nodiレクチャー 「CGと数学」講義資料 2024/11/19
masatatsu
2
190
不登校予防・再登校支援プログラムを提供するToCo (トーコ) の会社紹介資料 toco.mom
toco3week
0
400
HCL Domino 14.0 AutoUpdate を試してみた
harunakano
0
1.7k
お仕事図鑑pitchトーク
tetsuyaooooo
0
2.3k
Padlet opetuksessa
matleenalaakso
4
12k
CompTIA Security+ SY0-601 Resumo
mariliarochas
2
2.6k
勉強したらどうなるの?
mineo_matsuya
10
6.5k
Chapitre_1_-__L_atmosphère_et_la_vie_-_Partie_1.pdf
bernhardsvt
0
220
Comment aborder et contribuer sereinement à un projet open source ? (Masterclass Université Toulouse III)
pylapp
0
3.2k
1113
cbtlibrary
0
260
Comezando coas redes
irocho
0
370
Featured
See All Featured
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Designing on Purpose - Digital PM Summit 2013
jponch
115
7k
Statistics for Hackers
jakevdp
796
220k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
109
49k
The Cult of Friendly URLs
andyhume
78
6k
Agile that works and the tools we love
rasmusluckow
327
21k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
28
2k
Side Projects
sachag
452
42k
Being A Developer After 40
akosma
86
590k
Imperfection Machines: The Place of Print at Facebook
scottboms
265
13k
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": ^^^^^^^^^ !