Use:

import color

class Color(color.Color):
    ...

If this were Python 2.x, you would also want to derive color.Color from object, to make it a new-style class:

class Color(object):
    ...

This is not necessary in Python 3.x.

Answer from NPE on Stack Overflow
🌐
W3Schools
w3schools.com › python › ref_list_extend.asp
Python List extend() Method
fruits = ['apple', 'banana', 'cherry'] points = (1, 4, 5, 9) fruits.extend(points) Try it Yourself » · Tutorial: Python Lists · Tutorial: Join Python Lists · ❮ List Methods · ★ +1 · Sign in to track progress · REMOVE ADS · PLUS · SPACES · GET CERTIFIED ·
🌐
Programiz
programiz.com › python-programming › methods › list › extend
Python List extend()
The extend() method adds all the items of the specified iterable, such as list, tuple, dictionary, or string , to the end of a list.
🌐
GeeksforGeeks
geeksforgeeks.org › python › python-list-extend-method
Python List extend() Method - GeeksforGeeks
May 27, 2026 - DSA Python · Data Science · NumPy · Pandas · Practice · Django · Flask · Last Updated : 27 May, 2026 · extend() method is used to add all elements from another iterable to the end of a list.
🌐
Codecademy
codecademy.com › docs › python › lists › .extend()
Python | Lists | .extend() | Codecademy
July 14, 2025 - In Python, the .extend() method adds the elements of an iterable (like a list, string, or tuple) to the end of the current list.
Find elsewhere
🌐
FavTutor
favtutor.com › blogs › python-extend-list
Python List extend() Method ( with Examples and Codes )
November 29, 2023 - The extend method works by going through an entire iterable, then adding each element in the iterable one by one to the existing list. The most popular use case of the python extends method is to add new elements to a list.
🌐
Unstop
unstop.com › home › blog › extend in python | a complete guide with code examples
Extend In Python | A Complete Guide With Code Examples
February 4, 2025 - The extend() method in Python adds elements from an iterable to the end of a list, modifying the original list in place. It does not return a new list.
🌐
Analytics Vidhya
analyticsvidhya.com › home › python list extend() explained simply
Python List extend() Explained Simply
February 1, 2024 - It extends the original list in place, modifying it without creating a new list. Useful for combining multiple lists into a single, unified list. ... The append() method, on the other hand, adds a single element to the end of the list.
🌐
GeeksforGeeks
geeksforgeeks.org › python › extend-class-method-in-python
Extend Class Method in Python - GeeksforGeeks
July 12, 2025 - This means they receive the class (cls) as the first argument instead of the instance (self). Extending a class method refers to enhancing or customizing the behavior of an inherited class method in a subclass.
🌐
Python Academy
python-academy.org › functions › extend
extend — Python Function Reference
A comprehensive guide to Python functions, with examples. Find out how the extend function works in Python. Extend the list by appending all the items from the iterable.
🌐
CodeScracker
codescracker.com › python › python-extend-function.htm
Python extend() Function
Python extend() Function - The extend() function in Python, is used to add multiple elements or an iterable at the end of a list. The syntax to use extend() function is: listName.extend([value1, value2, value3, ..., valueN]), Or, listName.extend(iterable)
🌐
EDUCBA
educba.com › home › software development › software development tutorials › python tutorial › python extend
Python Extend | Different Examples of Python Extend
March 28, 2023 - It’s a keyword as well as a method also. We can use python extend to extend any class and its features into existing code. It is also called inheritance in the object-oriented paradigm.
Address   Unit no. 202, Jay Antariksh Bldg, Makwana Road, Marol, Andheri (East),, 400059, Mumbai
🌐
Tutorialspoint
tutorialspoint.com › python › list_extend.htm
Python List extend() Method
The Python List extend() method is used to append the contents of an iterable to another list. This iterable can either be an ordered collection of elements (like lists, strings and tuples) or unordered collection of elements (like sets).
🌐
4Geeks
4geeks.com › en › how-to › python-list-extend-method
Python list extend method
June 14, 2025 - Now the elements of the extra_brands list were individually added to the brands list, and not as a "list inside a list". This is since the extend method iterates the argument that it takes, this is called the iterable (.extend(iterable)) and adds each element of that argument iterating through all of the argument elements.
🌐
Tutorial Gateway
tutorialgateway.org › python-extend-list-function
Python list extend function
April 14, 2026 - The Python list extend() function is useful for adding all items from an iterable to the end of the existing list. It accepts an iterable, such as a string, list, tuple, set, or dictionary, as a parameter and merges it with the existing list.
🌐
IONOS
ionos.com › digital guide › websites › web development › python extend
How to merge two lists with Python extend - IONOS
October 30, 2023 - The extend() method in Python operates in a straight­for­ward manner. It takes a list and appends a second list to the end of it, ef­fec­tive­ly extending the first list with the elements of the second list.
🌐
Medium
medium.com › @samturquoise › what-is-python-extend-class-things-to-know-eff6cb27069b
What is Python Extend Class: Things to Know | by Sam Turquoise | Medium
November 22, 2025 - Python supports single and multiple ... extending a class in Python, we are referring to the creation of a new class that inherits attributes and methods from an existing class....