Skip to content
Menu
PyCon HK
  • Schedule
    • 2023
    • 2022
    • 2021
    • 2020 Fall
    • 2020 Spring
    • 2018
    • 2017
    • 2016
    • 2015
  • Sponsors
    • 2023
    • 2022
    • 2021
    • 2020 Fall
    • 2018
    • 2017
    • 2016
    • 2015
  • Organizers
    • Organizers
    • Volunteers
    • Booths
  • Supporting Organizations
  • Code of Conduct
    • Procedures for Reporting Incidents
    • Enforcement Procedures
  • About
    • PyCon HK
    • Conference Highlights
    • 2023
    • 2022
    • 2021
    • 2020 Fall
    • 2020 Spring
    • 2018
    • 2017
      • Photos
      • Videos
    • 2016
      • Photos
      • Videos
    • 2015
      • Photos
PyCon HK

Enjoy type hinting and its benefits

Posted on October 27, 2018September 18, 2024

From Python 3, type hinting was prompted. Thanks to this, static type analysis is now available in Python’s world. It is possible to use this mechanism with mypy, intellij etc. In this session we will learn about type hinting in Python 3.5 / 3.6/ 3.7. Next, learn how to use static type analysis using mypy. It is also possible to use mypy not only in Python 3 but also in Python 2. In other words, it is said to demonstrate great power to port Python 2 code to Python 3. In fact there are already successes like the following projects.

Throughout this session, I am pleased that you can think about writing python code and writing tests.

Blog: http://blog.zulip.org/2016/10/13/static-types-in-python-oh-mypy/

Buzzwords: Python3, TypeHints, mypy
Level: Beginner: Target audiences with basic experience of python programming
Requirements to Audiences: Person who continues to maintain Python code
Language: English

Speaker: Masato Nakamura (Japan)

Speaker Bio: I am a developer at Nulab in Japan.  I use Python and Scala/Java at work.  A recent hobby is to rewrite Python 2 code to Python 3.

GitHub: masahitojp
Twitter: masahito
Website/Blog: https://github.com/masahitojp

  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
  • YouTube

Archives

©2025 PyCon HK | Powered by SuperbThemes!
← Exploiting Emotional Knowledge from Emojis and #Hashtags ← Deep Learning in Python: Image Recognition for Anime Characters