MCPcopy Index your code
hub / github.com/dbcli/pgcli / arg

Method arg

pgcli/packages/parseutils/meta.py:140–145  ·  view source on GitHub ↗
(name, typ, num)

Source from the content-addressed store, hash-verified

138 ]
139
140 def arg(name, typ, num):
141 num_args = len(args)
142 num_defaults = len(self.arg_defaults)
143 has_default = num + num_defaults >= num_args
144 default = self.arg_defaults[num - num_args + num_defaults] if has_default else None
145 return ColumnMetadata(name, typ, [], default, has_default)
146
147 return [arg(name, typ, num) for num, (name, typ) in enumerate(args)]
148

Callers

nothing calls this directly

Calls 1

ColumnMetadataFunction · 0.85

Tested by

no test coverage detected