Skip to content

np.str_ raises TypeError: Argument must be a string #260

@ThatIsAPseudo

Description

@ThatIsAPseudo

Passing a np.str_ to whenever.Time.parse_common_iso (and, I guess, other function expecting a str as well) raises an error :

x = np.str_('00:00:00')

whenever.Time.parse_common_iso(x)
> TypeError: Argument must be a string

However :

whenever.Time.parse_common_iso(str(x))
> Time(00:00:00)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions