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

missing py.typed and errors in typing #6

Open
t1user opened this issue Feb 7, 2023 · 0 comments
Open

missing py.typed and errors in typing #6

t1user opened this issue Feb 7, 2023 · 0 comments

Comments

@t1user
Copy link

t1user commented Feb 7, 2023

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)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant