Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mypy issue in CI #196

Open
NoB0 opened this issue Oct 22, 2024 · 0 comments
Open

Fix mypy issue in CI #196

NoB0 opened this issue Oct 22, 2024 · 0 comments
Labels
improvement Improvement P1 Medium priority

Comments

@NoB0
Copy link
Collaborator

NoB0 commented Oct 22, 2024

Investigate and resolve mypy issues raised in scripts folder.

2024-10-22T11:42:02.8156059Z scripts/datasets/information_need_annotation/__init__.py: error: Source file found twice under different module names: "information_need_annotation" and "scripts.datasets.information_need_annotation"
2024-10-22T11:42:02.8159338Z scripts/datasets/information_need_annotation/__init__.py: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#mapping-file-paths-to-modules for more info
2024-10-22T11:42:02.8163007Z scripts/datasets/information_need_annotation/__init__.py: note: Common resolutions include: a) adding `__init__.py` somewhere, b) using `--explicit-package-bases` or adjusting MYPYPATH
2024-10-22T11:42:02.8164890Z Found 1 error in 1 file (errors prevented further checking)
2024-10-22T11:42:02.8165633Z Success: no issues found in 13 source files
2024-10-22T11:42:02.8167039Z scripts/nlu/metrics.py: error: Source file found twice under different module names: "metrics" and "scripts.nlu.metrics"
2024-10-22T11:42:02.8169091Z scripts/nlu/metrics.py: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#mapping-file-paths-to-modules for more info
2024-10-22T11:42:02.8171361Z scripts/nlu/metrics.py: note: Common resolutions include: a) adding `__init__.py` somewhere, b) using `--explicit-package-bases` or adjusting MYPYPATH
2024-10-22T11:42:02.8172831Z Found 1 error in 1 file (errors prevented further checking)
2024-10-22T11:42:02.8174187Z scripts/evaluation/satisfaction_evaluation.py:49: error: Invalid index type "int" for "dict[str, float]"; expected type "str"  [index]
2024-10-22T11:42:02.8175504Z Found 1 error in 1 file (checked 13 source files)
@NoB0 NoB0 added improvement Improvement P1 Medium priority labels Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement P1 Medium priority
Projects
None yet
Development

No branches or pull requests

1 participant