lablup / lablup/backend.ai

Apply strict mypy error code

Open
#4,999 0 comments 0 reactions 1 assignee Claimed by @fregataa View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
17h 7m
Merged PRs (30d)
358

Description

We have been encountering `UnboundLocalError`, which can arise from various pieces of code. To address this issue, let’s configure mypy to identify instances of undefined local variable errors and rectify the affected code.
For more details, refer to the documentation here: [https://mypy.readthedocs.io/en/stable/error_code_list2.html#warn-about-variables-that-are-defined-only-in-some-execution-paths-possibly-undefined](https://mypy.readthedocs.io/en/stable/error_code_list2.html#warn-about-variables-that-are-defined-only-in-some-execution-paths-possibly-undefined).

JIRA Issue: BA-1780

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.