Skip to content

dtype is unused input parameter in get_conversion_factor #579

@Cpp87

Description

@Cpp87

I found that _get_conversion_factor takes "dtype" as 3rd input parameter. This parameter is unused, so I suggest removing it.
The private function is called because unit.get_conversion_factor, which can also drop "dtype", delegates to it.

function signature:
def get_conversion_factor(self, other_units, dtype=None):
return _get_conversion_factor(self, other_units, dtype)

code state: main branch from 5th May 2025, hash: 2fd015d

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions