Skip to content

Commit

Permalink
Merge pull request python-qt-tools#104 from altendky/voidptr
Browse files Browse the repository at this point in the history
sip.voidptr handles integer values and sequences
  • Loading branch information
altendky authored Oct 4, 2020
2 parents 4dc81d3 + 8b8b1e4 commit 94dcdd5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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 and takes `self`
* [#103](https://github.com/stlehmann/PyQt5-stubs/pull/103) `pyqtBoundSignal.disconnect()`'s `slot` parameter is optional
* [#100](https://github.com/stlehmann/PyQt5-stubs/pull/100) fill generic parameter as `sip.array[int]` for QtDataVisualization textures
* [#92](https://github.com/stlehmann/PyQt5-stubs/pull/92) remove self from `qDefaultSurfaceFormat()` and `qIdForNode()`
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__(self, addr: Union[int, None, bytes, bytearray, 'voidptr'], size: int = -1, writeable: bool = True) -> None: ...

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

0 comments on commit 94dcdd5

Please sign in to comment.