Practical Uses for Function Annotations

Practical Uses for Function Annotations

EuroPython Conference via YouTube Direct link

Combining different uses of annotations

21 of 24

21 of 24

Combining different uses of annotations

Class Central Classrooms beta

YouTube playlists curated by Class Central.

Classroom Contents

Practical Uses for Function Annotations

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Intro
  2. 2 What are Function Annotations? Syntactic sugar for adding metadata to function definitions
  3. 3 Annotations are just syntactic sugar
  4. 4 Adding Typing Information
  5. 5 Helping tools (IDE, Editor)
  6. 6 Wait a sec!
  7. 7 Libraries usually do this
  8. 8 Experiment: Runtime checking
  9. 9 Runtime checking: how it looks
  10. 10 But isinstance is killing duck typing!
  11. 11 Another example
  12. 12 Implementation of structural interfaces
  13. 13 Types + behaviour = predicates
  14. 14 More fun with predicates
  15. 15 The open function annotated again
  16. 16 Unions
  17. 17 Function overloading
  18. 18 More kinds of types typedefs
  19. 19 A different approach to type annotations: rightarrow
  20. 20 Using rightarrow
  21. 21 Combining different uses of annotations
  22. 22 Annotations for language bridges
  23. 23 Why annotations are not used? • Not a wide know feature
  24. 24 Questions?

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.