How to Think About Type Hints

How to Think About Type Hints

ArjanCodes

1 год назад

6,933 Просмотров

Type hints are very useful. I recommend you use them all the time (at least when you’re coding in Python :) ). They help make your code more readable and on top of that, your IDE will give you more useful suggestions while editing.

👷 Join the FREE Code Diagnosis Workshop to help you review code more effectively using my 3-Factor Diagnosis Framework: https://www.arjancodes.com/diagnosis

💻 ArjanCodes Blog: https://www.arjancodes.com/blog

🎓 Courses:
The Software Designer Mindset: https://www.arjancodes.com/mindset
The Software Designer Mindset Team Packages: https://www.arjancodes.com/sas
The Software Architect Mindset: Pre-register now! https://www.arjancodes.com/architect
Next Level Python: Become a Python Expert: https://www.arjancodes.com/next-level-python
The 30-Day Design Challenge: https://www.arjancodes.com/30ddc

🛒 GEAR & RECOMMENDED BOOKS: https://kit.co/arjancodes.

👍 If you enjoyed this content, give this video a like. If you want to watch more of my upcoming videos, consider subscribing to my channel!

💬 Discord: https://discord.arjan.codes
🐦Twitter: https://twitter.com/arjancodes
🌍LinkedIn: https://www.linkedin.com/company/arjancodes
🕵Facebook: https://www.facebook.com/arjancodes
📱Instagram: https://www.instagram.com/arjancodes

#arjancodes #softwaredesign #python

DISCLAIMER - The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you. Thanks for supporting my channel so I can continue to provide you with free content each week!

Тэги:

#type_hints #python_type_hints #python_type_annotations #python_type_hinting #type_hints_python #how_to_think_about_type_hints #python_programming #type_annotations #python_type_annotation #python_type_checkers #type_hints_real_python #arjancodes_type_hints #python_typing_library #how_type_hints_work #python_annotations #how_to_use_type_hints_in_python #learn_python #python_type_checking #python_type_hints_tutorial #python_typing_module #python_type_hinting_tutorial #python
Ссылки и html тэги не поддерживаются


Комментарии:

@FrankM
@FrankM - 08.12.2022 19:29

How do you type hint argparse?

Ответить
@voxelfusion9894
@voxelfusion9894 - 08.12.2022 03:33

Without type hints, highly coupled functions become a nightmare, especially when a function expects some specific data structure or object.

Ответить
@grzegorzryznar5101
@grzegorzryznar5101 - 08.12.2022 01:12

Are sill plans about making series about coding a more advanced game?

Ответить
@Anna-pk1ed
@Anna-pk1ed - 08.12.2022 00:42

I might have seen you on board of a plane heading for one of the Spanish islands 🤔 If so, enjoy!

Ответить
@jakubstepien5645
@jakubstepien5645 - 07.12.2022 19:04

Type hints are ugly and ugly is not pythonic :)

Ответить