Programming language/python1 TypeError: super(type, obj): obj must be an instance or subtype of type 에러 이유 및 해결방법 1. Error Code Class A: def func(x: int): return x + 1 Class B(A): def use_func(): a = [super().func(i) for i in range(3)] print(a) the original code is different and has been modified since posting it online could cause code leaks of the company I am working for. Yet, I believe this code explains the prob perfect. I got an error in this line: a = [super().func(i) for i in range(3)] 2. The cuase,.. 2023. 7. 13. 이전 1 다음