Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Forward References and Python 3 Type Hints
Search
Daniel Bader
July 20, 2016
Education
290
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Forward References and Python 3 Type Hints
Watch the full presentation here:
https://www.youtube.com/watch?v=AJsrxBkV3kc
Daniel Bader
July 20, 2016
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
230
ME'13 Presentation Slides
dbader
3
1.3k
Android Services
dbader
1
88
Ressourcenverwaltung in SWT
dbader
1
64
TDD Java Exercise
dbader
5
4.9k
A Framework for Remote Usability Evaluation on Mobile Devices
dbader
1
1.8k
Sketch 3D
dbader
1
58
Other Decks in Education
See All in Education
新型コロナ禍をともに「楽しみながら開いていこう!」 :中門 吉松 会員(2720 Japan O.K.ロータリーEクラブ)卓話 : 2026.10.19.例会・卓話
2720japanoke
0
710
【ホスト用】ainiチャット操作ガイド
ainischool
0
140
CLASSIFICATION OF CRUDE DRUGS
pawan_pharm
0
280
HTML5 and the Open Web Platform - Lecture 3 - Web Technologies (1019888BNR)
signer
PRO
3
3.6k
[2026後期火5] 論理学(京都大学文学部 後期 第2回)「量化子の導入」
yatabe
0
220
Merger Process
bvr7352
0
180
BRIEF OUTLINE OF IMPORTANT PLANT CONSTITUENTS
pawan_pharm
0
260
【ainiチャット】2段階認証設定方法
ainischool
0
150
中小規模私大の教学IRを支えるデータマネジメント ― データ基盤構築の取り組みと実務の現在地 ―
terazawa
0
250
Pharmacognosy_Chapter_-1.pdf , Definition, history & scope of pharmacognosy
ak679839
1
170
Quality Control of Crude Drugs
pawan_pharm
0
210
Padlet opetuksessa
matleenalaakso
12
16k
Featured
See All Featured
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Why Our Code Smells
bkeepers
PRO
340
58k
Large-scale JavaScript Application Architecture
addyosmani
516
110k
The SEO Collaboration Effect
kristinabergwall1
1
610
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
540
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
22k
Practical Orchestrator
shlominoach
192
12k
Unsuck your backbone
ammeep
672
58k
Designing for Performance
lara
612
70k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Building Adaptive Systems
keathley
44
3.3k
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": ^^^^^^^^^ !