lablup / lablup/backend.ai

Refactor code to pass `no_implicit_optional` mypy rule

Open
#979 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
17h 7m
Merged PRs (30d)
358

Description

### Main idea

After updating Backend.AI's mypy version to 0.991 (#972), we can see bunch of errors complaining `Incompatible default for argument ...` error. As a temporary measure, we've overrided `implicit_optional` setting with `true` to disable corresponding. We now need to refactor our whole code so that we can pass type checking safely without overriding that config value.Maybe we can consider integrating https://github.com/hauntsaninja/no_implicit_optional with pants' `fmt` command so that invalid type definitions can be automatically fixed.

### Alternative ideas

_No response_

### Anything else?

_No response_

JIRA Issue: BA-224

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.