We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b76b2af commit 7cc2282Copy full SHA for 7cc2282
stdlib/_ctypes.pyi
@@ -56,6 +56,12 @@ class _CData(metaclass=_CDataMeta):
56
_b_base_: int
57
_b_needsfree_: bool
58
_objects: Mapping[Any, int] | None
59
+ # At runtime the following classmethods are available only on classes, not
60
+ # on instances. This can't be reflected properly in the type system:
61
+ #
62
+ # Structure.from_buffer(...) # valid at runtime
63
+ # Structure(...).from_buffer(...) # invalid at runtime
64
65
@classmethod
66
def from_buffer(cls, source: WriteableBuffer, offset: int = ...) -> Self: ...
67
0 commit comments