Type Hinting - Advanced Python Tutorial #6

preview_player
Показать описание
In this video we talk about type hinting in Python.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

💻 Exclusive Content 💻

🌐 Social Media & Contact 🌐

Рекомендации по теме
Комментарии
Автор

It's the first time I hear about this feature. I loved it! Definitively I'll start using it in my code. Thanks!

jrgomez
Автор

Can you make a discord server. People can talk to you and ask questions first handed there and ask the questions can be answered by the community too

adxd
Автор

What is the name of the song you are using in the intro?

os_.mos_.m
Автор

Can you make a series on test driven development in python?

sophialawal
Автор

In versions lower than 3.9 you can use typing for lists:
from typing import List
and then
test_list: List[dict] = []

hovardlee
Автор

Any way to automate/run mypy programmatically? Like in a testing tool such as pytest?

sj_life_and_science
Автор

Which programming language should I learn after mastering python?


By the way nice tutorial :)

zombiekiller
Автор

Man, well done.
How do you change your typing position without mouse clicking?
I mean:
You are typing between codes and defs
But suddenly you do a shortcut and then
Booom!
You're typing in terminal!
What's that shortcut?
If you know, please say it in pycharm😅
Tnx

seyedmahziar
Автор

what about 2 type hints? like this

def add(x: float, y: float) -> int or float:
sum = x + y
if sum.is_integer():
return int(sum)
return sum


it is okay to use like that?

sudo
Автор

I faced a case where I am defining a decorator and cannot use function as a hinted type for the parameter. What do to here?

rafaeel
Автор

BTW what's the use of this, if python is intelligent enough to sense the data types automatically. Does declaring types leads to performance boost?

rvraghvender
Автор

Can you made a single playlist of Python from beginner to advance.
As i m bignner so i m confused a little bit about where to go after one playlist.

MrMukulpandey
Автор

at afar, I thought you were a 3d rendered model

swiveiproduction
Автор

Mannn... I love this channel. This content is awesome. I'm a developer myself. I just want to know that whether we can do like auto completion in python. Like if you start typing.. something. The most accurate thing shows in light color and when we press enter or tab, it filled automatically.

umangmittal
Автор

what kind of ide or editor are you using?

mertcobanov
Автор

Very nice video. I was wondering about exactly these things since a few days. Not sure why less than 1k likes! One added from me.

hmdabir
Автор

Quick question, where do you live (Country/State)

tips
Автор

They can hint all they want. Single and not looking.

Stopinvadingmyhardware
Автор

This is not at all advanced type hinting.

adamhendry
Автор

Thank you.

We can also do type checking with Pylance in VScode
In setting.json

```{
"basic"
}```

khatriajaya