Type Hints in Python: What, Why, and How

Type Hints in Python: What, Why, and How

Pretty Printed

2 года назад

11,560 Просмотров

Ссылки и html тэги не поддерживаются


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

@atexnik
@atexnik - 24.01.2023 12:03

Are you allowed to have 2 functions with same name in Python? Which one will be called then?

Ответить
@kcvinu
@kcvinu - 05.01.2023 16:57

I need circular module dependency in order to use type hint. How to safely avoid that ? Button class needs Window class and Window class needs Button class. Do I need to use typing.TypeVar() ?

Ответить
@Steven-wm9vu
@Steven-wm9vu - 27.02.2022 22:48

LOL at saying stir instead of string for str.

Ответить
@md2perpe
@md2perpe - 06.02.2022 15:17

You have misspelled my name! 😉 It's "Per Persson", not "per person".

Ответить
@petarkasapinov7324
@petarkasapinov7324 - 07.01.2022 05:29

Great video!

It would be great if you made videos on sqlachemy with fastapi. There realy isn't a lot out there on this topic and fastapi is getting more and more popular. I know a lot of the code is very similar to sqlalchemy with flask, but those minor differences do make it confusing.

Ответить
@goodwish1543
@goodwish1543 - 06.11.2021 08:48

Emphasize readability, Wonderful! Hope may have some time to talk SOLID design principles and common design patterns in Python in near future.

Ответить
@jabiraziz1219
@jabiraziz1219 - 20.09.2021 20:27

Sir , How Can I reach out to You , I really need your help.
Please Reply

Ответить
@tazkhan8679
@tazkhan8679 - 07.09.2021 21:28

i have seen people teaching how to use type hints but never felt important before seeing this video. great video!

Ответить
@kiri101
@kiri101 - 02.09.2021 00:12

Video was maybe a bit longer than it needed to be but much better than the 'just do this' explanation I got elsewhere! I can see how this will make my code more readable to others and importantly to tools, which will be able to parse this information reliably compared to the human-readable docstrings

Ответить
@DerMaikNichJa
@DerMaikNichJa - 01.09.2021 22:07

Thanks, excellent. Do you have a video about annotations?

Ответить
@bartekz88
@bartekz88 - 01.09.2021 21:54

Make more videos bro!

Ответить
@AnkitTiwari-dq7qm
@AnkitTiwari-dq7qm - 01.09.2021 19:42

❤❤

Ответить
@SsaliJonathan
@SsaliJonathan - 01.09.2021 17:57

Very nice video. You are huge inspiration man

Ответить