Skip to content

use  #1

@filkovsp

Description

@filkovsp

Hi, may i propose an improvement to the Overload class?
Instead of using @signature("str"), i'd prefer using passing datatypes to the signature decorator: @signature(str).
This makes it possible to use this decorator for polymorphic classes, when we pass Parent Class type into signature decorator and want to accept inheriting child class as an argument's type.

Here is the improved version:
filkovsp/pythonlangutil/blob/master/pythonlangutil/overload.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions