← 输入框|github.com|刷新
Skip to content

Rename VersionInfo to Version #305

Closed

Description

@tlaferriere

So there are my two suggestions for this issue:

  • Overload the constructor with __init__(self, version: str)
  • Rename VersionInfo to Version

Originally posted by @tlaferriere in #258 (comment)

Just addressing this explicitly

Activity

  1. added a commit that references this issue on Oct 29, 2020
    d38813d
  2. tomschr commented on Oct 30, 2020

    @tomschr
    Member

    Thanks for opening this. 👍

    I think, this issue is closely related to #303. In this issue, I present the idea of an (overloaded) semver.version function which acts as a wrapper for all different types. So I guess, we have a third option here which we should discuss. 😉

    Regardless of the constructor/initializer or the semver.version function, renaming VersionInfo to Version is okay to me as long as we have an alias (something like VersionInfo = Version which also outputs a deprecation warning when used).

  3. added a commit that references this issue on Nov 1, 2020
    b0f854d
  4. self-assigned this
    on Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

SIze

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions