Skip to content

Commit 16de572

Browse files
committed
Updated stubs
1 parent ace6106 commit 16de572

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

examples/developer_guide/4_rabbitmq_cpp_stage/src/rabbitmq_cpp_stage/_lib/rabbitmq_cpp_stage/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import datetime
33
import mrc.core.segment
44
__all__ = ['RabbitMQSourceStage']
55
class RabbitMQSourceStage(mrc.core.segment.SegmentObject):
6-
def __init__(self, builder: mrc.core.segment.Builder, name: str, host: str, exchange: str, exchange_type: str = 'fanout', queue_name: str = '', poll_interval: datetime.timedelta = ...) -> None:
6+
def __init__(self, builder: mrc.core.segment.Builder, name: str, host: str, exchange: str, exchange_type: str = 'fanout', queue_name: str = '', poll_interval: datetime.timedelta = datetime.timedelta(microseconds=100000)) -> None:
77
...

python/morpheus/morpheus/_lib/common/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,12 +328,12 @@ def determine_file_type(filename: str) -> FileTypes:
328328
@typing.overload
329329
def determine_file_type(filename: os.PathLike) -> FileTypes:
330330
...
331-
def read_file_to_df(filename: str, file_type: FileTypes = ...) -> typing.Any:
331+
def read_file_to_df(filename: str, file_type: FileTypes = FileTypes.Auto) -> typing.Any:
332332
...
333333
def typeid_is_fully_supported(arg0: TypeId) -> bool:
334334
...
335335
def typeid_to_numpy_str(arg0: TypeId) -> str:
336336
...
337-
def write_df_to_file(df: typing.Any, filename: str, file_type: FileTypes = ..., **kwargs) -> None:
337+
def write_df_to_file(df: typing.Any, filename: str, file_type: FileTypes = FileTypes.Auto, **kwargs) -> None:
338338
...
339339
__version__: str = '25.2.0'

python/morpheus/morpheus/_lib/stages/__init__.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ class KafkaSourceStage(mrc.core.segment.SegmentObject):
5353
def __init__(self, builder: mrc.core.segment.Builder, name: str, max_batch_size: int, topics: list[str], batch_timeout_ms: int, config: dict[str, str], disable_commits: bool = False, disable_pre_filtering: bool = False, stop_after: int = 0, async_commits: bool = True, oauth_callback: typing.Callable | None = None) -> None:
5454
...
5555
class MonitorControlMessageStage(mrc.core.segment.SegmentObject):
56-
def __init__(self, builder: mrc.core.segment.Builder, name: str, description: str, unit: str = 'messages', text_color: morpheus._lib.common.IndicatorsTextColor = ..., font_style: morpheus._lib.common.IndicatorsFontStyle = ..., determine_count_fn: typing.Callable[[morpheus._lib.messages.ControlMessage], int] | None = None) -> None:
56+
def __init__(self, builder: mrc.core.segment.Builder, name: str, description: str, unit: str = 'messages', text_color: morpheus._lib.common.IndicatorsTextColor = IndicatorsTextColor.cyan, font_style: morpheus._lib.common.IndicatorsFontStyle = IndicatorsFontStyle.bold, determine_count_fn: typing.Callable[[morpheus._lib.messages.ControlMessage], int] | None = None) -> None:
5757
...
5858
class MonitorMessageMetaStage(mrc.core.segment.SegmentObject):
59-
def __init__(self, builder: mrc.core.segment.Builder, name: str, description: str, unit: str = 'messages', text_color: morpheus._lib.common.IndicatorsTextColor = ..., font_style: morpheus._lib.common.IndicatorsFontStyle = ..., determine_count_fn: typing.Callable[[morpheus._lib.messages.MessageMeta], int] | None = None) -> None:
59+
def __init__(self, builder: mrc.core.segment.Builder, name: str, description: str, unit: str = 'messages', text_color: morpheus._lib.common.IndicatorsTextColor = IndicatorsTextColor.cyan, font_style: morpheus._lib.common.IndicatorsFontStyle = IndicatorsFontStyle.bold, determine_count_fn: typing.Callable[[morpheus._lib.messages.MessageMeta], int] | None = None) -> None:
6060
...
6161
class PreallocateControlMessageStage(mrc.core.segment.SegmentObject):
6262
def __init__(self, builder: mrc.core.segment.Builder, name: str, needed_columns: list[tuple[str, morpheus._lib.common.TypeId]]) -> None:
@@ -74,6 +74,6 @@ class SerializeStage(mrc.core.segment.SegmentObject):
7474
def __init__(self, builder: mrc.core.segment.Builder, name: str, include: list[str], exclude: list[str], fixed_columns: bool = True) -> None:
7575
...
7676
class WriteToFileStage(mrc.core.segment.SegmentObject):
77-
def __init__(self, builder: mrc.core.segment.Builder, name: str, filename: str, mode: str = 'w', file_type: morpheus._lib.common.FileTypes = ..., include_index_col: bool = True, flush: bool = False) -> None:
77+
def __init__(self, builder: mrc.core.segment.Builder, name: str, filename: str, mode: str = 'w', file_type: morpheus._lib.common.FileTypes = FileTypes.Auto, include_index_col: bool = True, flush: bool = False) -> None:
7878
...
7979
__version__: str = '25.2.0'

0 commit comments

Comments
 (0)