Skip to content

Allow annotations to be optional when @typed #11

@chtenb

Description

@chtenb
class Foo:
    @typed
    def validate(self, string: str): # TypeError: Annotation doesn't match function signature
        ...

It'd be great if this would not give an error, but just limit the checking to the annotated variables.

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