Logan Jones <loganasherjo...@gmail.com> added the comment:

Hi Bozhi. The syntax that you're referencing was added in 3.9. So if you're 
trying the syntax in earlier versions of Python, it won't work. The standard 
collections were added in PEP 585 (https://www.python.org/dev/peps/pep-0585/)

I think the reason the examples use this syntax is that the previous List 
classes were deprecated in favor of the new syntax.

Hope this helps!

----------
nosy: +loganasherjones

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45518>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to