I have a problem that I don't even know how to search for. Look at this simple class as an example:
class Student(object):
def _init_(self):
self.id = 0
def inc(self):
self.id += 1
std_gen = Student
What is the type of std_gen
?
I tried:
print(type(std_gen))
and I got this:
<class 'type'>
I need to find it's type and add it to a docstring. I can't even find something
that returns True
with isinstance(std_gen, something)
Edit: I found isinstance(std_gen, type)
returns True
but that barely makes sense in a docstring. What does that mean?