I have this function code
def getList(self, cursor=self.conn_uat.cursor()):
from pprint import pprint
cursor.execute(...)
I am getting this error
NameError: name 'self' is not defined
The reason i am using in args is so that i dont put any dependency inside any function to make testing easier