Skip to content

EventID has no nodeId but it is being used. #57

@Poikilos

Description

@Poikilos

This looks like maybe a type-o carried over from reusing code from the NodeID constructor. The EventID constructor has this code and it appears incorrect since EventID has no nodeId. What should this look like?

        elif isinstance(data, EventID):
            self.eventId = data.nodeId

probably change to self.eventId = data.eventId

but I think EventID and NodeID would be less confusing to read and use if we change EventID's eventID and NodeID's nodeID to just self.value, since the type is int not the parent class type as the name implies in other parts of the code and typical conventions. Let me know your thoughts.

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