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

Add logger type annotations for GUI checks #491

Closed
MJJoyce opened this issue Jan 19, 2023 · 0 comments · Fixed by #492
Closed

Add logger type annotations for GUI checks #491

MJJoyce opened this issue Jan 19, 2023 · 0 comments · Fixed by #492

Comments

@MJJoyce
Copy link
Member

MJJoyce commented Jan 19, 2023

When making updates for NASA-AMMOS/AIT-GUI#241 I needed to add a few type annotations to log.py globals to keep mypy happy.

MJJoyce added a commit that referenced this issue Jan 19, 2023
Add minor type annotations in log.py to keep type checking happing in
AIT-GUI.

Resolve #491
MJJoyce added a commit that referenced this issue Jan 24, 2023
Add minor type annotations in log.py to keep type checking happy in
AIT-GUI.

Resolve #491
MJJoyce added a commit that referenced this issue Jan 24, 2023
Shift the `log.py` logger globals to the beginning of the file to avoid
a Python bug that causes spurious "annotated name can't be global"
errors when mypy lints the files.

See here for the issue report:
https://bugs.python.org/issue34939

Clarification on the ticket marks this as a bug and a fix was added.
This avoids the error in Python 3.7.
MJJoyce added a commit that referenced this issue Jan 24, 2023
Add minor type annotations in log.py to keep type checking happy in
AIT-GUI.

Resolve #491
MJJoyce added a commit that referenced this issue Jan 24, 2023
Shift the `log.py` logger globals to the beginning of the file to avoid
a Python bug that causes spurious "annotated name can't be global"
errors when mypy lints the files.

See here for the issue report:
https://bugs.python.org/issue34939

Clarification on the ticket marks this as a bug and a fix was added.
This avoids the error in Python 3.7.
MJJoyce added a commit that referenced this issue Jan 24, 2023
Issue #491 - Add logger type annotations for GUI mypy checks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant