@@ -2,7 +2,7 @@ import selectors
22import ssl
33from _typeshed import Incomplete
44from collections .abc import Callable , Iterable , Mapping , Sequence
5- from typing import Literal , TypeAlias , TypedDict
5+ from typing import Literal , TypeAlias , TypedDict , type_check_only
66from typing_extensions import Unpack
77
88from kafka .admin .acl_resource import ACL , ACLFilter
@@ -20,6 +20,7 @@ _SaslMechanism: TypeAlias = Literal["PLAIN", "GSSAPI", "OAUTHBEARER", "SCRAM-SHA
2020_SecurityProtocol : TypeAlias = Literal ["PLAINTEXT" , "SSL" , "SASL_PLAINTEXT" , "SASL_SSL" ]
2121_SocketOption : TypeAlias = tuple [int , int , int ]
2222
23+ @type_check_only
2324class _KafkaAdminClientConfig (TypedDict , total = False ):
2425 bootstrap_servers : _BootstrapServers
2526 client_id : str
@@ -59,6 +60,7 @@ class _KafkaAdminClientConfig(TypedDict, total=False):
5960 metrics_sample_window_ms : int
6061 kafka_client : _KafkaClientFactory
6162
63+ @type_check_only
6264class _CreateAclsResult (TypedDict ):
6365 succeeded : list [ACL ]
6466 failed : list [tuple [ACL , KafkaError ]]
0 commit comments