diff --git a/README.md b/README.md index 7ff3041..7370ea7 100644 --- a/README.md +++ b/README.md @@ -2296,11 +2296,11 @@ delattr(, '') # Same. Also `del . = inspect.signature() # Function's Signature object. - = .parameters # Dict of Parameter objects. - = .kind # Member of ParameterKind enum. - = .default # Default value or Parameter.empty. - = .annotation # Type or Parameter.empty. + = inspect.signature() # Returns function's Signature object. + = .parameters # Dict of Parameter objects. Also .return_type. + = .kind # Member of ParameterKind enum (KEYWORD_ONLY, ...). + = .default # Returns param's default value or Parameter.empty. + = .annotation # Returns param's type hint or Parameter.empty. ``` diff --git a/index.html b/index.html index 3c5ee02..6bad888 100644 --- a/index.html +++ b/index.html @@ -1894,11 +1894,11 @@ value = getattr(<object>, '<attr_name>''<attr_name>', value) # Only works on objects with __dict__ attribute. delattr(<object>, '<attr_name>') # Same. Also `del <object>.<attr_name>`. -
<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 Parameter.empty.
-<type> = <Param>.annotation                # Type or Parameter.empty.
+
<Sig>  = inspect.signature(<function>)     # Returns function's Signature object.
+<dict> = <Sig>.parameters                  # Dict of Parameter objects. Also <Sig>.return_type.
+<memb> = <Param>.kind                      # Member of ParameterKind enum (KEYWORD_ONLY, ...).
+<obj>  = <Param>.default                   # Returns param's default value or Parameter.empty.
+<type> = <Param>.annotation                # Returns param's type hint or Parameter.empty.
 

#Coroutines

  • Coroutines have a lot in common with threads, but unlike threads, they only give up control when they call another coroutine and they don’t use as much memory.