How to return the class type in python using generics?
I’m creating a List class in python (a List like java lists) using generics. The class node is also generic and I’m creating the getters and setters methods for the prev and next node. I was wondering how could I return a type like the class node itself?
This is my progress: