Skip to content

Add type annotations #563

@bradenmacdonald

Description

@bradenmacdonald

Attempting to use this library in a project that uses mypy (e.g. openedx-core) results in a mypy error because it doesn't seem to have any type annotations:

Image
signals.py:6: error: Skipping analyzing "openedx_events.tooling": module is installed, but missing library stubs or py.typed marker  [import-untyped]
signals.py:6: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 247 source files)

To fix this:

  1. Add type annotations, and
  2. Add a py.typed marker so the annotations will get installed and used.

Metadata

Metadata

Assignees

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