Allan Daemon added the comment:
> I actually have no idea where dir() gets its information.
I will share what I find out already, so it may hopefully be helpful.
The dir function used is the general object.__dir__ function, defined in
Objects/typeobject.c:type___dir___impl(), that j
New submission from Allan Daemon :
The implementation of PEP 585 in 3.9 adds some new attributes, but they aren't
listed with dir() (then, not list in autocomplete and IntelliSense).
Python 3.9.0rc1+ (heads/3.9:d7cd1164c1, Aug 25 2020, 17:27:09)
>>> li = list[int]
>