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
Python Type Hints
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Ayla Khan
May 16, 2018
Technology
44
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Python Type Hints
PyLadies lightning talk about Python type hints
Ayla Khan
May 16, 2018
More Decks by Ayla Khan
See All by Ayla Khan
Getting started with docker + python
aylakhan
0
24
Productive Bash
aylakhan
1
45
Unit Tests and Mocks: Testing in Python
aylakhan
0
33
Other Decks in Technology
See All in Technology
Optunaの最新リリースv5.0について
pfn
PRO
0
120
1つのリクエストを追って理解する - llm-dのP/D分離
akhino
1
160
DevelopersIO 2026 知識の地図を描く ─ オントロジーとは何か?
ishikawa_satoru
1
1.7k
Code for Security プロジェクト紹介 2026年10月
yu23ki14
0
110
Tofu-Controller lightning talk @ Containerday 2026
gionn
0
110
DGX Spark でどこまでハッキングができるのか?
kash1064
3
1.3k
How to Design Configuration for Rails Applications
willnet
1
810
Claude の新機能を、 出た日に触って社内に届けるまで
rfdnxbro
1
180
古い指輪から広がった JAVA コミュニティ とのつながり
yamad
0
110
夫婦で子育てするための育児標準化
codmoninc
PRO
0
350
大型犬好きによるPugの紹介
yamanoku
1
160
その Valkey 使いこなしていますか?
onk
PRO
5
1.5k
Featured
See All Featured
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
360
How GitHub (no longer) Works
holman
316
150k
Product Roadmaps are Hard
iamctodd
55
13k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
Building Applications with DynamoDB
mza
96
7.2k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
850
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
580
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
480
A better future with KSS
kneath
240
18k
Done Done
chrislema
187
17k
Transcript
Python (3.5+) Type Hints Using Type Aliases
What Are Python Type Hints? • New in 3.5 (provisional)
• PEP484 • Optional (not enforced at runtime) ◦ Linter use recommended instead • Function annotations • Type Aliases, NewType, Callable, Generics ...
Type Alias
Type Alias Linting
Type Alias At Runtime
Type Alias
Type Alias At Runtime
Type Alias
Type Alias
Type Alias (Any type, implicit)
Type Alias (Any type, implicit)
Type Hints Advantages • Clarifies, “enforces” intent • Improves readability
◦ Simplifies type signatures • Improves testability • May prevent bugs
Type Hints Disadvantages • Lose dynamic typing flexibility • Syntax
complexity