Python Forum
Super with Sublime Text - TypeError: super() takes at least 1 argument (0 given)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Super with Sublime Text - TypeError: super() takes at least 1 argument (0 given)
#3
that is exactly the out put i am trying to get but i still get the error even with the correction. strange!! i am using Sublime Text.

Output:
Traceback (most recent call last): File "/Users/shaneshomefolder/Documents/Lists/numercial lists /inheratence_take_2.py", line 44, in <module> my_kindle_fire = KindleFire('amazon', 'kindle fire', 'backlight', 'long life', 'color screen') File "/Users/shaneshomefolder/Documents/Lists/numercial lists /inheratence_take_2.py", line 41, in __init__ super().__init__(make, model, backlight, battery, screentype) TypeError: super() takes at least 1 argument (0 given) [Finished in 0.2s with exit code 1] [shell_cmd: python -u "/Users/shaneshomefolder/Documents/Lists/numercial lists /inheratence_take_2.py"] [dir: /Users/shaneshomefolder/Documents/Lists/numercial lists ] [path: /Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin]

it works when i put it in my IDE. Odd!
Reply


Messages In This Thread
RE: Using the Super function - by Yoriz - May-04-2019, 07:47 PM
RE: Using the Super function - by Shafla - May-04-2019, 07:52 PM
RE: Using the Super function - by Yoriz - May-04-2019, 08:17 PM
RE: Using the Super function - by Shafla - May-04-2019, 08:23 PM
RE: Using the Super function - by Yoriz - May-04-2019, 08:25 PM
RE: Using the Super function - by Shafla - May-04-2019, 08:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question [SOLVED] [newbie] Why call super()? When to use parent? Winfried 4 1,435 Feb-10-2025, 11:40 AM
Last Post: Winfried
Question TypeError: argument of type 'NoneType' is not iterable Tajaldeen 7 3,520 Nov-29-2024, 09:45 AM
Last Post: Tajaldeen
  Problems with super() Hoespilaar 3 2,280 Jun-11-2024, 02:15 AM
Last Post: kanetracy
  TypeError: Diagram.render() takes 1 positional argument but 2 were given sachin1361 0 1,358 Apr-23-2024, 06:39 AM
Last Post: sachin1361
  super() and order of running method in class inheritance akbarza 7 2,723 Feb-04-2024, 09:35 AM
Last Post: Gribouillis
  problem with print command in super() akbarza 5 2,031 Feb-01-2024, 12:25 PM
Last Post: deanhystad
  super() in class akbarza 1 2,750 Dec-19-2023, 12:55 PM
Last Post: menator01
  while loop not working-I am using sublime text editor mma_python 4 2,350 Feb-05-2023, 06:26 PM
Last Post: deanhystad
  Error TypeError: output_type_handler() takes 2 positional arguments but 6 were given paulo79 1 3,725 Oct-17-2022, 06:29 PM
Last Post: paulo79
  TypeError: float() argument must be a string or a number, not 'list' Anldra12 2 7,039 Jul-01-2022, 01:23 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020