ALL of Python 3.13's MAJOR typing changes

  Рет қаралды 6,751

Carberra

Carberra

Күн бұрын

Пікірлер: 18
@shikanokonokokoshitantan
@shikanokonokokoshitantan 2 күн бұрын
Nice, one step closer to pi-thon
@PennyEvolus
@PennyEvolus 2 күн бұрын
Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan Shikanokonoko koshitantan
@maleldil1
@maleldil1 2 күн бұрын
Why do you use the old generics syntax for these examples? IMO, it doesn't much sense to use the old syntax when the new one is available. I understand using it for more general videos, so they apply to a wider public, but not here. Regardless, I'd appreciate it if you could show both versions anyway. Anyway, great video. Hopefully pyright implements the new typing stuff soon.
@Carberra
@Carberra 2 күн бұрын
Largely because the PEP uses the old syntax, and neither Mypy or Pyright was particularly happy using the new syntax with defaults, so I decided to go with what's definitely known to work rather than complicate it. Glad you enjoyed the video though!
@Heavy_Lvy
@Heavy_Lvy 2 күн бұрын
@@Carberra i hate the old syntax😭😭
@EngineerNick
@EngineerNick 2 күн бұрын
Thankyou this was a great summary and demo :)
@Heavy_Lvy
@Heavy_Lvy 2 күн бұрын
7:16 probably the extension is using a older version of pyright or mypy. The extension won't use the pyright/mypy version installed on your environment.
@Carberra
@Carberra 2 күн бұрын
I was using the latest version of Pyright (at time of recording) from the terminal, not an extension. If Pyright doesn't support something, it's pretty much a dead cert Mypy doesn't support it either.
@Heavy_Lvy
@Heavy_Lvy 2 күн бұрын
@@Carberra hmm thats strange then, it was working fine for me just not default TypeVars with 3.13 syntax.🤷‍♂🤷‍♂🤷‍♂🤷‍♂
@fmitchell238a
@fmitchell238a 2 күн бұрын
Thanks for this. I'm just now catching up on 3.13's features. A video on support for Protocols would be appreciated. My statically typed brain still can't quite fit itself around Python's protocols using duck typing, and compile-time or run-time predicates verifying that a class conforms to a Protocol would make using Protocols feel like black magic (or pure superstition).
@Carberra
@Carberra 2 күн бұрын
Glad you enjoyed it! Protocols is actually a topic I've been meaning to cover for a while, so I'll bump that up the queue! The runtime checkable thing is a pretty nice feature, so I'll make sure to cover that as well.
@marckiezeender
@marckiezeender 2 күн бұрын
Protocols are basically just interfaces but without explicitly implementing them.
@murphygreen8484
@murphygreen8484 Күн бұрын
What's the benefits of ReadOnly over Final?
@Carberra
@Carberra Күн бұрын
Can you use Final in TypedDicts? If so, I'm honestly not sure!
@murphygreen8484
@murphygreen8484 Күн бұрын
@@Carberra oh I'm not sure, it's part of the typing library though! Speaking of typing things - why is typing a openpyxl object such a nightmare? I can't get PyCharm to recognize it
@Carberra
@Carberra Күн бұрын
I believe Openpyxl isn't typed. If it has a stubs package, might be a case of installing that and getting PyCharm to recognise it? Though this isn't the first time I've heard about someone having trouble _this week_, so idk if something's going on.
@chrism6880
@chrism6880 2 күн бұрын
Is it possible to back port the new repl to use it with older python versions?
@Carberra
@Carberra 2 күн бұрын
Not to my knowledge. You can use the third-party IPython REPL in older versions though, which is different but very nice to use.
The New Python 3.13 Is FINALLY Here!
20:39
ArjanCodes
Рет қаралды 42 М.
Generics are VITAL in typed Python
16:54
Carberra
Рет қаралды 10 М.
SHAPALAQ 6 серия / 3 часть #aminkavitaminka #aminak #aminokka #расулшоу
00:59
Аминка Витаминка
Рет қаралды 3,2 МЛН
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 45 МЛН
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,1 МЛН
REAL 3D brush can draw grass Life Hack #shorts #lifehacks
00:42
MrMaximus
Рет қаралды 5 МЛН
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 501 М.
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 94 М.
41% Increased Bugs With Copilot
29:54
ThePrimeTime
Рет қаралды 169 М.
Map Men vs. Geoguessr
28:07
Jay Foreman
Рет қаралды 485 М.
5 Useful Python Decorators (ft. Carberra)
14:34
Indently
Рет қаралды 103 М.
Are metaclasses the HARDEST thing in Python?
20:41
Carberra
Рет қаралды 3,8 М.
PLEASE Use These 5 Python Decorators
20:12
Tech With Tim
Рет қаралды 115 М.
Real 10x Programmers Are SLOW To Write Code
14:51
Thriving Technologist
Рет қаралды 58 М.
SHAPALAQ 6 серия / 3 часть #aminkavitaminka #aminak #aminokka #расулшоу
00:59
Аминка Витаминка
Рет қаралды 3,2 МЛН