Skip to content

Better types #73

@jakajancar

Description

@jakajancar

I'm having to litter my code with # pyright: ignore[reportUnknownMemberType] on pretty much every call to Chancy. It would be nice if types were defined better. For example:

  • get_schedules returns dict[str, dict] (untyped inner dict)
  • schedule takes *jobs: Job | IsAJob[..., Unknown] (the IsAJob protocol uses ... for the ParamSpec)
  • with_kwargs takes **kwargs without type annotation
  • job() decorator takes **options without type annotation

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions