Skip to content

Commit

Permalink
refactor(_model): drop classvar in _model module (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
benbenbang committed Apr 20, 2024
1 parent ce28fd2 commit 75ece8c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions confluent_kafka-stubs/_model/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,21 @@ from __future__ import annotations

# standard library
from enum import Enum
from typing import ClassVar

from ..cimpl import TopicPartition

class Node:
id: ClassVar[int]
id_string: ClassVar[str]
host: ClassVar[str]
port: ClassVar[int]
rack: ClassVar[str]
id: int
id_string: str
host: str
port: int
rack: str

def __init__(self, id: int, host: str, port: int, rack: str | None = None) -> None: ...

class ConsumerGroupTopicPartitions:
group_id: ClassVar[str]
topic_partitions: ClassVar[list["TopicPartition"]]
group_id: str
topic_partitions: list["TopicPartition"]

def __init__(self, group_id: str, topic_partitions: list["TopicPartition"] | None = None) -> None: ...

Expand Down

0 comments on commit 75ece8c

Please sign in to comment.