diff --git a/README.md b/README.md index 1a2616f..18e8a38 100644 --- a/README.md +++ b/README.md @@ -1745,7 +1745,7 @@ Metaprograming **Code that generates code.** ### Type -**Type is the root class. If only passed the object it returns its type (class). Otherwise it creates a new class.** +**Type is the root class. If only passed an object it returns its type (class). Otherwise it creates a new class.** ```python = type(, , ) diff --git a/index.html b/index.html index ae014a9..0fc2f79 100644 --- a/index.html +++ b/index.html @@ -1507,7 +1507,7 @@ param_names = list(<sig>.parameters.keys())

#Metaprograming

Code that generates code.

Type

-

Type is the root class. If only passed the object it returns its type (class). Otherwise it creates a new class.

+

Type is the root class. If only passed an object it returns its type (class). Otherwise it creates a new class.

<class> = type(<class_name>, <parents_tuple>, <attributes_dict>)
 
>>> Z = type('Z', (), {'a': 'abcde', 'b': 12345})