BinaryIOLike#

class langsmith.schemas.BinaryIOLike(*args, **kwargs)[source]#

Protocol for binary IO-like objects.

Methods

__init__(*args, **kwargs)

read([size])

Read function.

seek(offset[, whence])

Seek function.

write(b)

Write function.

__init__(*args, **kwargs)#
read(size: int = -1) bytes[source]#

Read function.

Parameters:

size (int) –

Return type:

bytes

seek(offset: int, whence: int = 0) int[source]#

Seek function.

Parameters:
  • offset (int) –

  • whence (int) –

Return type:

int

write(b: bytes) int[source]#

Write function.

Parameters:

b (bytes) –

Return type:

int