diff --git a/stubs/confluent_kafka/admin/_config.pyi b/stubs/confluent_kafka/admin/_config.pyi index 76c18ed5c..d811a4bfa 100644 --- a/stubs/confluent_kafka/admin/_config.pyi +++ b/stubs/confluent_kafka/admin/_config.pyi @@ -1,5 +1,6 @@ from ._resource import ResourceType from enum import Enum +from typing import cast class ConfigResource: Type = ResourceType @@ -12,7 +13,7 @@ class ConfigResource: ) -> None: ... class ConfigSource(Enum): - UNKNOWN_CONFIG: int - DYNAMIC_TOPIC_CONFIG: int + UNKNOWN_CONFIG = cast(int, ...) + DYNAMIC_TOPIC_CONFIG = cast(int, ...) class ConfigEntry: ... diff --git a/stubs/confluent_kafka/admin/_resource.pyi b/stubs/confluent_kafka/admin/_resource.pyi index db1cda471..67b02be22 100644 --- a/stubs/confluent_kafka/admin/_resource.pyi +++ b/stubs/confluent_kafka/admin/_resource.pyi @@ -1,4 +1,5 @@ from enum import Enum +from typing import cast class ResourceType(Enum): - TOPIC: int + TOPIC = cast(int, ...)