CodeQL library for Python
Search

Class Arguments

The default values and annotations (type hints) for the arguments in a function definition.

Annotations (PEP 3107) is a general mechanism for providing annotations for a function, that is generally only used for type hints today (PEP 484).

Import path

import python

Direct supertypes

Indirect supertypes

Predicates

getASubExpression
getAnnotation

Gets the annotation for the index’th positional parameter.

getDefault

Gets the default value for the index’th positional parameter.

getKwAnnotation

Gets the annotation for the index’th keyword-only parameter.

getKwDefault

Gets the default value for the index’th keyword-only parameter.

Inherited predicates

getADefault

Gets a default value of this parameters definition.

from Arguments_
getAKwAnnotation

Gets a keyword-only annotation of this parameters definition.

from Arguments_
getAKwDefault

Gets a keyword-only default value of this parameters definition.

from Arguments_
getAnAnnotation

Gets an annotation of this parameters definition.

from Arguments_
getAnnotations

Gets the annotations of this parameters definition.

from Arguments_
getDefaults

Gets the default values of this parameters definition.

from Arguments_
getKwAnnotations

Gets the keyword-only annotations of this parameters definition.

from Arguments_
getKwDefaults

Gets the keyword-only default values of this parameters definition.

from Arguments_
getKwargannotation

Gets the **kwarg annotation of this parameters definition.

from Arguments_
getParentfrom Arguments_
getVarargannotation

Gets the *arg annotation of this parameters definition.

from Arguments_
toString

Gets a textual representation of this element.

from Arguments_