MCPcopy Create free account
hub / github.com/python-hyper/uritemplate / variable_prefix

Method variable_prefix

uritemplate/variable.py:139–147  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

137 # return ","
138
139 def variable_prefix(self) -> str:
140 if self == Operator.reserved:
141 return ""
142 return t.cast(str, self.value)
143 # match self:
144 # case Operator.reserved:
145 # return ""
146 # case _:
147 # return t.cast(str, self.value)
148
149 def _always_quote(self, value: str) -> str:
150 return quote(value, "")

Callers 1

expandMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected