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

Function _encode

uritemplate/variable.py:555–558  ·  view source on GitHub ↗
(value: t.AnyStr, encoding: str = "utf-8")

Source from the content-addressed store, hash-verified

553
554
555def _encode(value: t.AnyStr, encoding: str = "utf-8") -> bytes:
556 if isinstance(value, str):
557 return value.encode(encoding)
558 return value
559
560
561def quote(value: t.Any, safe: str) -> str:

Callers 1

quoteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…