MCPcopy Create free account
hub / github.com/pybind/pybind11 / backport

Function backport

tests/conftest.py:307–311  ·  view source on GitHub ↗
(sanitized_string: SanitizedString)

Source from the content-addressed store, hash-verified

305 d["typing_extensions.TypeGuard"] = "typing.TypeGuard"
306
307 def backport(sanitized_string: SanitizedString) -> SanitizedString:
308 for old, new in d.items():
309 sanitized_string.string = sanitized_string.string.replace(old, new)
310
311 return sanitized_string
312
313 return backport

Callers

nothing calls this directly

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected