Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TopicCollection is missing in __all__ #1732

Open
pavelschon opened this issue Apr 23, 2024 · 3 comments · May be fixed by #1764
Open

TopicCollection is missing in __all__ #1732

pavelschon opened this issue Apr 23, 2024 · 3 comments · May be fixed by #1764
Labels

Comments

@pavelschon
Copy link

Importing TopicCollection as

from confluent_kafka import TopicCollection

raises:

error: Module "confluent_kafka" has no attribute "TopicCollection"

The type is not listed in __all__ at

@pranavrth
Copy link
Member

I am not facing this issue. Can you please provide the output of confluent_kafka.version() command and also the python version you are using.

@pavelschon
Copy link
Author

I'm sorry, this was not ImportError, but mypy's complaint:

error: Module "confluent_kafka" does not explicitly export attribute "TopicCollection"  [attr-defined]

Python: 3.12.1
Confluent-Kafka version: ('2.3.0', 33751040)

@pranavrth pranavrth added the investigate further It's unclear what the issue is at this time but there is enough interest to look into it label Apr 29, 2024
@pranavrth
Copy link
Member

Got it. I will investigate and update here. No harm in adding in all though. Will raise a PR soon.

@pranavrth pranavrth added bug and removed investigate further It's unclear what the issue is at this time but there is enough interest to look into it labels Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants