taskMgr.add and class issues *new user*

So, im fiddling with a tutorial and i have encountered an issue when i try to run my program i get a message in the command prompt saying

Attribute Error: GameTwo instance has no attribute ‘update_task’

taskMgr
self.taskMgr.add(self.update_task, “update_task”)

my update task
def update_task(self, task):
self.update_player()
self.update_camera()
return Task.cont

im not sure how to pull everything off the cmd prompt and i can post more code if need be but assistance would be appreciated, like why this is happening and how to resolve the issue i have searched in many places

Sounds like an indentation issue. Make sure that the “def update_task(…” line is indented under the class GameTwo definition.

i tried ensuring that update_task was aligned under my class after you said so, but then python complained about indentation issues i also made sure that the rest of my indents were properly placed, also i have .task imported (obviously) so, i have my arguments in update_task as (self, task) but then it complains that task is unused so i change task to Task and it then stated that my from.direct.task import Task is unused.