lablup / lablup/backend.ai

Resolve issues caused by actual `None` value in dictionary variable

Open
#5,312 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
15h 13m
Merged PRs (30d)
368

Description

## Motivation  

- There are type-related issues at runtime caused by actual `None` values being present in dictionary-type variables.
- As a temporary measure, the affected code can be modified using `or` operator instead of `get` with default value.
- In the long term, these dictionary types should be converted to Pydantic types to explicitly generate correct default values.

JIRA Issue: BA-1953

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by locating dictionary-type variables that can contain actual None values and identifying their runtime type failures; done requires converting the affected dictionary types to Pydantic types with correct defaults.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.