Skip to content

point_class call in Model.load() is not keyworded #78

Open

Description

@laelnasan

Just a simple issue that prevents me to reuse the code with a new class which inherits Point. I can make a pull request to correct it if possible.

At sunspec.core.device.Model.load, line 709:
now:

point = point_class(block, point_type, str(point_addr))

what I'ld like:

point = point_class(block=block, point_type=point_type, addr=str(point_addr))

Activity

  1. altendky commented on Aug 2, 2019

    @altendky
    Contributor

    When you inherit your constructor should be compatible anyways what with super() calls and not actually knowing which constructor it will hit next in the MRO. But I personally do pass named arguments almost always anyways so the change itself seems reasonable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions