Skip to content

Commit

Permalink
Merge pull request #263 from ska-sa/pyi-removals
Browse files Browse the repository at this point in the history
Remove .pyi file entries for removed functionality
  • Loading branch information
bmerry authored Sep 3, 2023
2 parents 0d1cfe7 + 0307a94 commit 2ddae17
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 114 deletions.
1 change: 1 addition & 0 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ changes have been made:
- Document that Meson must be at least 1.2.
- Make source paths in :file:`.debug` files more usable (relative to
4.0.0b1).
- Remove :file:`.pyi` file entries for the functionality removed in 4.0.

.. rubric:: 4.0.0b1

Expand Down
25 changes: 0 additions & 25 deletions src/spead2/recv/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,6 @@ class Ringbuffer:
def capacity(self) -> int: ...

class _Stream:
DEFAULT_UDP_IBV_MAX_SIZE: ClassVar[int]
DEFAULT_UDP_IBV_BUFFER_SIZE: ClassVar[int]
DEFAULT_UDP_IBV_MAX_POLL: ClassVar[int]
DEFAULT_UDP_MAX_SIZE: ClassVar[int]
DEFAULT_UDP_BUFFER_SIZE: ClassVar[int]
DEFAULT_TCP_MAX_SIZE: ClassVar[int]
Expand Down Expand Up @@ -203,28 +200,6 @@ class _Stream:
) -> None: ...
@overload
def add_tcp_reader(self, acceptor: socket.socket, max_size: int = ...) -> None: ...
@overload
def add_udp_ibv_reader(
self,
multicast_group: str,
port: int,
interface_address: str,
max_size: int = ...,
buffer_size: int = ...,
comp_vector: int = ...,
max_poll: int = ...,
) -> None: ...
@overload
def add_udp_ibv_reader(
self,
endpoints: Sequence[tuple[str, int]],
interface_address: str,
max_size: int = ...,
buffer_size: int = ...,
comp_vector: int = ...,
max_poll: int = ...,
) -> None: ...
@overload
def add_udp_ibv_reader(self, config: UdpIbvConfig) -> None: ...
def add_udp_pcap_file_reader(self, filename: str, filter: str = ...) -> None: ...
def add_inproc_reader(self, queue: spead2.InprocQueue) -> None: ...
Expand Down
76 changes: 0 additions & 76 deletions src/spead2/send/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -98,46 +98,6 @@ class SyncStream(Stream):
class _UdpStream:
DEFAULT_BUFFER_SIZE: ClassVar[int]

@overload
def __init__(
self,
thread_pool: spead2.ThreadPool,
hostname: str,
port: int,
config: StreamConfig = ...,
buffer_size: int = ...,
interface_address: str = ...,
) -> None: ...
@overload
def __init__(
self,
thread_pool: spead2.ThreadPool,
hostname: str,
port: int,
config: StreamConfig,
buffer_size: int,
ttl: int,
) -> None: ...
@overload
def __init__(
self,
thread_pool: spead2.ThreadPool,
multicast_group: str,
port: int,
config: StreamConfig,
ttl: int,
interface_address: str,
) -> None: ...
@overload
def __init__(
self,
thread_pool: spead2.ThreadPool,
multicast_group: str,
port: int,
config: StreamConfig,
ttl: int,
interface_index: int,
) -> None: ...
@overload
def __init__(
self,
Expand All @@ -147,8 +107,6 @@ class _UdpStream:
port: int,
config: StreamConfig = ...,
) -> None: ...

# Endpoint list variants
@overload
def __init__(
self,
Expand Down Expand Up @@ -221,23 +179,6 @@ class UdpIbvConfig:
) -> None: ...

class _UdpIbvStream:
DEFAULT_BUFFER_SIZE: ClassVar[int]
DEFAULT_MAX_POLL: ClassVar[int]

@overload
def __init__(
self,
thread_pool: spead2.ThreadPool,
multicast_group: str,
port: int,
config: StreamConfig,
interface_address: str,
buffer_size: int = ...,
ttl: int = ...,
comp_vector: int = ...,
max_pool: int = ...,
) -> None: ...
@overload
def __init__(
self, thread_pool: spead2.ThreadPool, config: StreamConfig, udp_ibv_config: UdpIbvConfig
) -> None: ...
Expand All @@ -253,16 +194,6 @@ class TcpStream(_TcpStream, SyncStream):
self, thread_pool: spead2.ThreadPool, socket: socket.socket, config: StreamConfig = ...
) -> None: ...
@overload
def __init__(
self,
thread_pool: spead2.ThreadPool,
hostname: str,
port: int,
config: StreamConfig = ...,
buffer_size: int = ...,
interface_address: str = ...,
) -> None: ...
@overload
def __init__(
self,
thread_pool: spead2.ThreadPool,
Expand All @@ -277,15 +208,8 @@ class BytesStream(SyncStream):
def __init__(self, thread_pool: spead2.ThreadPool, config: StreamConfig = ...) -> None: ...

class _InprocStream:
@property
def queue(self) -> spead2.InprocQueue: ...
@property
def queues(self) -> Sequence[spead2.InprocQueue]: ...
@overload
def __init__(
self, thread_pool: spead2.ThreadPool, queue: spead2.InprocQueue, config: StreamConfig = ...
) -> None: ...
@overload
def __init__(
self,
thread_pool: spead2.ThreadPool,
Expand Down
13 changes: 0 additions & 13 deletions src/spead2/send/asyncio.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import asyncio
import socket
from typing import overload

import spead2
import spead2.send
Expand Down Expand Up @@ -45,18 +44,6 @@ class TcpStream(spead2.send._TcpStream, AsyncStream):
socket: socket.socket,
config: spead2.send.StreamConfig = ...,
) -> None: ...
@overload
@classmethod
async def connect(
self,
thread_pool: spead2.ThreadPool,
hostname: str,
port: int,
config: spead2.send.StreamConfig = ...,
buffer_size: int = ...,
interface_address: str = ...,
) -> None: ...
@overload
@classmethod
async def connect(
self,
Expand Down

0 comments on commit 2ddae17

Please sign in to comment.