Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sip.voidptr handles integer values and sequences #104

Merged
merged 4 commits into from
Oct 4, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
* [#51](https://github.com/stlehmann/PyQt5-stubs/pull/51) adds `pyqtBoundSignal.signal` hinted as `str`

### Changed
* [#104](https://github.com/stlehmann/PyQt5-stubs/pull/104) `sip.voidptr` handles integer values and sequences
* [#92](https://github.com/stlehmann/PyQt5-stubs/pull/92) remove self from `qDefaultSurfaceFormat()` and `qIdForNode()`
* [#83](https://github.com/stlehmann/PyQt5-stubs/pull/83) fixes `sip.array` to be generic
* [#79](https://github.com/stlehmann/PyQt5-stubs/pull/79) fixes extra class layer in several modules
Expand Down
4 changes: 2 additions & 2 deletions PyQt5-stubs/sip.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class array(Sequence[_T], Generic[_T]):
# The voidptr type.
class voidptr:

def __init__(addr: Union[int, Buffer], size: int = -1, writeable: bool = True) -> None: ...
def __init__(addr: Union[int, None, bytes, bytearray, 'voidptr'], size: int = -1, writeable: bool = True) -> None: ...
altendky marked this conversation as resolved.
Show resolved Hide resolved

def __int__(self) -> int: ...

Expand All @@ -79,7 +79,7 @@ class voidptr:

def __setitem__(self, i: Union[int, slice], v: Buffer) -> None: ...

def asarray(self, size: int = -1) -> array: ...
def asarray(self, size: int = -1) -> array[int]: ...

# Python doesn't expose the capsule type.
#def ascapsule(self) -> capsule: ...
Expand Down