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)

Initialize self.

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]

Initialize self. See help(type(self)) for accurate signature.

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.