diff --git a/README.md b/README.md index 730a775..f28467a 100644 --- a/README.md +++ b/README.md @@ -2206,8 +2206,8 @@ delattr(, '') # Same. Also `del . = inspect.signature() # Function's Signature object. = .parameters # Dict of Parameter objects. = .kind # Member of ParameterKind enum. - = .default # Default value or .empty. - = .annotation # Type or .empty. + = .default # Default value or Parameter.empty. + = .annotation # Type or Parameter.empty. ``` diff --git a/index.html b/index.html index 362d7e2..5b7f119 100644 --- a/index.html +++ b/index.html @@ -1820,8 +1820,8 @@ delattr(<object>, '<attr_name>')

Parameters

<Sig>  = inspect.signature(<function>)     # Function's Signature object.
 <dict> = <Sig>.parameters                  # Dict of Parameter objects.
 <memb> = <Param>.kind                      # Member of ParameterKind enum.
-<obj>  = <Param>.default                   # Default value or <Param>.empty.
-<type> = <Param>.annotation                # Type or <Param>.empty.
+<obj>  = <Param>.default                   # Default value or Parameter.empty.
+<type> = <Param>.annotation                # Type or Parameter.empty.
 

#Metaprogramming

Code that generates code.

Type

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>', <tuple_of_parents>, <dict_of_class_attributes>)