According to PEP8 we should use a single underscore in front of fields that are not part of the public API of a class.
This article does a good job of explaining why we should use this convention.
This is present in most classes, like PollyTTS:
class PollyTTS(AbstractTTS):
def __init__(
self,
client: PollyClient,
voice: Optional[str] = None,
) -> None:
self.client = client # should be changed to self._client
self.voice = voice or "Joanna" # should be changed to self._voice
Description
According to PEP8 we should use a single underscore in front of fields that are not part of the public API of a class.
This article does a good job of explaining why we should use this convention.
This is present in most classes, like
PollyTTS
: