MCPcopy Index your code
hub / github.com/python-pillow/Pillow / write_undefined

Method write_undefined

src/PIL/TiffImagePlugin.py:851–856  ·  view source on GitHub ↗
(self, value: bytes | int | IFDRational)

Source from the content-addressed store, hash-verified

849
850 @_register_writer(7)
851 def write_undefined(self, value: bytes | int | IFDRational) -> bytes:
852 if isinstance(value, IFDRational):
853 value = int(value)
854 if isinstance(value, int):
855 value = str(value).encode("ascii", "replace")
856 return value
857
858 @_register_loader(10, 8)
859 def load_signed_rational(

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected