Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

missing py.typed and errors in typing #6

@t1user

Description

@t1user

The package requires a py.typed marker.

After generating stubs with stubgen, mypy reports following errors:

stubs/eventkit/ops/timing.pyi:9: error: Signature of "on_source_error" incompatible with supertype "Op"  [override]
stubs/eventkit/ops/timing.pyi:9: note:      Superclass:
stubs/eventkit/ops/timing.pyi:9: note:          def on_source_error(self, source: Any, error: Any) -> None
stubs/eventkit/ops/timing.pyi:9: note:      Subclass:
stubs/eventkit/ops/timing.pyi:9: note:          def on_source_error(self, error: Any) -> None
stubs/eventkit/ops/misc.pyi:10: error: Signature of "on_source_error" incompatible with supertype "Op"  [override]
stubs/eventkit/ops/misc.pyi:10: note:      Superclass:
stubs/eventkit/ops/misc.pyi:10: note:          def on_source_error(self, source: Any, error: Any) -> None
stubs/eventkit/ops/misc.pyi:10: note:      Subclass:
stubs/eventkit/ops/misc.pyi:10: note:          def on_source_error(self, error: Any) -> None
stubs/eventkit/ops/array.pyi:8: error: Return type "ArrayMin" of "min" incompatible with return type "Min" in supertype "Event"  [override]
stubs/eventkit/ops/array.pyi:9: error: Return type "ArrayMax" of "max" incompatible with return type "Max" in supertype "Event"  [override]
stubs/eventkit/ops/array.pyi:10: error: Signature of "sum" incompatible with supertype "Event"  [override]
stubs/eventkit/ops/array.pyi:10: note:      Superclass:
stubs/eventkit/ops/array.pyi:10: note:          def sum(self, start: int = ...) -> Sum
stubs/eventkit/ops/array.pyi:10: note:      Subclass:
stubs/eventkit/ops/array.pyi:10: note:          def sum(self) -> ArraySum
stubs/eventkit/ops/array.pyi:12: error: Return type "ArrayMean" of "mean" incompatible with return type "Mean" in supertype "Event"  [override]
stubs/eventkit/ops/array.pyi:14: error: Return type "ArrayAny" of "any" incompatible with return type "eventkit.ops.aggregate.Any" in supertype "Event"  [override]
stubs/eventkit/ops/array.pyi:15: error: Return type "ArrayAll" of "all" incompatible with return type "All" in supertype "Event"  [override]
Found 8 errors in 3 files (checked 14 source files)

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