Skip to content

Tracker._get_or_create_player should not be a private method #19

@djcunningham0

Description

@djcunningham0

Tracker._get_or_create_player (or _create_new_player) should be a public method. There are legitimate use cases where the user of the package would want to call this method, such as when you are implementing a more complicated system with additional logic that can't be handled by Tracker.process_data.

Low priority because the use case is rare and methods are never really private in Python anyway (it's just more difficult for users to discover this method).

def _get_or_create_player(self, player_id: str) -> Player:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions