Skip to content
Myr

fix pyright findings

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Adam Dangoor · committed by David Lord · parent b88c484 · Browse files · 1 file+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:src/click/_winconsole.py+3 added-2 removed
106 unmodified lines
107 flags: int = PyBUF_WRITABLE if writable else PyBUF_SIMPLE108 PyObject_GetBuffer(py_object(obj), byref(buf), flags)109110 try:111 buffer_type: Array[c_char] = c_char * buf.len112 return buffer_type.from_address(buf.buf) # type: ignore[attr-defined, no-any-return]111 buffer_type = c_char * buf.len112 out: Array[c_char] = buffer_type.from_address(buf.buf)113 return out114 finally:115 PyBuffer_Release(byref(buf))116117
179 unmodified lines