title: TypeError: object() takes no parameters (trex dino bot)
body: <p>how can i solve this problem please tell me what to do 
  this i am not able to figure out this problem. so please do tell me how to solve this in simple words.</p>
  
  <pre><code>import time
  
  from PIL import ImageGrab
  import pyautogui
  
  class Cordinates():
      replayBtn = (340,420)
      dinosaur = (422,170)
      #215= xcordinate to check for tree
  
  def restartGame():
      pyautogui.click(Cordinates.replayBtn)
  
  def pressSapce():
      pyautogui.keyDown('space')
      time.sleep(0.05)
      print("Jump")
  pyautogui.KeyUp('space')
  
  restartGame()
  time.sleep(1)
  pressSapce()
  </code></pre>
  
  <hr>
  
  <p>after runing i get</p>
  
  <hr>
  
  <pre><code>C:\Users\Pranav\PycharmProjects\untitled1\venv\Scripts\python.exe 
  C:/Users/Pranav/PycharmProjects/untitled1/bot.py
  Traceback (most recent call last):
  Jump
  File "C:/Users/Pranav/PycharmProjects/untitled1/bot.py", line 22, in &lt;module&gt;
  pressSapce()
  File "C:/Users/Pranav/PycharmProjects/untitled1/bot.py", line 18, in pressSapce
      pyautogui.KeyUp('space')
  TypeError: object() takes no parameters
  
  Process finished with exit code 1
  </code></pre>
  
  <hr>
  
  <p>how to solve :-</p>
  
  <pre><code>pyautogui.KeyUp('space')
  TypeError: object() takes no parameters
  </code></pre>
  
  <p>what do you mean by the above message</p>