I really don’t like the Dev AI, it very often gives not working code. Here is an example:
A few text later it gave me this
But ’ type’ cannot be used like this.