Parameter

class metpy.units.Parameter(name, kind, *, default, annotation)[source]

Represents a parameter in a function signature.

Has the following public attributes:

Attributes Summary

KEYWORD_ONLY

POSITIONAL_ONLY

POSITIONAL_OR_KEYWORD

VAR_KEYWORD

VAR_POSITIONAL

annotation

default

kind

name

Methods Summary

__init__(name, kind, *, default, annotation)

replace(*[, name, kind, annotation, default])

Creates a customized copy of the Parameter.

Attributes Documentation

KEYWORD_ONLY = 3
POSITIONAL_ONLY = 0
POSITIONAL_OR_KEYWORD = 1
VAR_KEYWORD = 4
VAR_POSITIONAL = 2
annotation
default
kind
name

Methods Documentation

__init__(name, kind, *, default, annotation)[source]
replace(*, name=<class 'inspect._void'>, kind=<class 'inspect._void'>, annotation=<class 'inspect._void'>, default=<class 'inspect._void'>)[source]

Creates a customized copy of the Parameter.