본문 바로가기
기술스택을 쌓아보자/Python

TypeError: descriptor '__init__' of 'super' object needs an argument

by 소리331 2022. 7. 29.
반응형

제목과 같은 에러가 나와서 호잇! 했는데, 

해결방법은 쉽다!

# 수정전
def __init__(self):
    super.__init__()
    
    
# 수정전
def __init__(self):
    super().__init__()

super를 선언하는 것을 잊지 마시길 ㅎㅎ

반응형

댓글