langgenius / langgenius/dify

use NewType instead of str everywhere

Open
#38,466 7 comments 2 reactions 0 assignees View on GitHub
project#dify
Dominant language
TypeScript
Stars
156k
Forks
24.6k
Avg merge
22h 9m
Merged PRs (30d)
610

Description

https://docs.python.org/3/library/typing.html#newtype

@dosu what do you think.

Contributor guide

Open the contributing guide

Research direction

Read the linked Python typing.NewType documentation first, then inspect the repository’s Python code to determine what “everywhere” covers. Define the affected annotations and compatibility boundaries before making changes; done should mean the agreed scope consistently uses NewType and the relevant checks still pass.

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
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.