Skip to content

Commit

Permalink
refactor(error): drop classvar in error.py (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
benbenbang authored Apr 20, 2024
1 parent 5871c83 commit f3fa6b8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions confluent_kafka-stubs/error.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ This package is licensed under the Apache 2.0 License.
"""
from __future__ import annotations

# standard library
from typing import ClassVar

from .cimpl import KafkaError as KafkaError
from .cimpl import KafkaException as KafkaException
from .cimpl import Message
Expand All @@ -25,8 +22,8 @@ class _KafkaClientError(KafkaException):
by the broker.
"""

exception: ClassVar[KafkaException]
kafka_message: ClassVar[Message]
exception: KafkaException
kafka_message: Message

def __init__(
self,
Expand Down

0 comments on commit f3fa6b8

Please sign in to comment.