Skip to content

revision function's type annotation is partial. #1110

@mmohaveri

Description

@mmohaveri

Describe the bug

Revision function's type annotation causes "Type is partially unknown" error. The root of the issue is that process_revision_directives's argument has been typed with Callable which is a partial type (as it lacks definition of the signature of the function).

Expected behavior
I expect the type of the process_revision_directives to be fully defined so type checkers like Pyright won't give me an error.

To Reproduce
Just write any code that imports revision and run pyright on it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pep 484typing related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions