Skip to content

Enable original function version to be named #4

@jheintz

Description

@jheintz
@versionedfunction
def foo():
  return 0

@foo.version
def foo2():
    return 2

assert foo() == 2

versionContext[foo] = ??? #how do this? maybe <original> as magic string?
assert foo() == 0

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