You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Keefe, Daniel" <Da...@dell.com> on 2020/03/07 21:55:45 UTC

Suppress PyCharm Inspection warning

I get an inspection warning in PyCharm "if a protected member is accessed outside the class where it's defined or in a module."  I import TopicPartition in order to be able to create TopicPartition objects for assignment to the consumer.

The following change in __init__ in the kafka directory remedies this situation.[cid:image001.png@01D5F4A0.4B3DBE60]
Daniel Keefe
Distinguished Member Technical Staff
Dell EMC | Integrated Offerings