tawada / grass-grower

0 stars 0 forks source link

Standardize documentation language in `schemas/__init__.py` to English for consistency and clarity. #84

Closed tawada closed 1 month ago

tawada commented 1 month ago

Certainly! Upon reviewing the code of the existing program, one notable issue is the usage of the term "Schemas" in schemas/__init__.py. Although it aims to define the data structures, it uses a mix of Japanese and English documentation and comments, which could be confusing for developers who might not understand both languages.

Suggested Change:

Standardize the documentation language within the schemas/__init__.py file to maintain consistency and clarity across the codebase.

# Current (Mixed Language)
"""データ構造を定義するモジュール"""

from dataclasses import dataclass, field
from typing import List

@dataclass
class IssueComment:
    """IssueCommentのデータ構造"""

    author: str
    association: str
    edited: str
    status: str
    body: str

@dataclass
class Issue:
    """Issueのデータ構造"""

    id: int
    title: str
    body: str
    comments: List[IssueComment] = field(default_factory=list)
    summary: str = ""

# Suggested Change (Standardized English)
"""Module to define data structures"""

from dataclasses import dataclass, field
from typing import List

@dataclass
class IssueComment:
    """Data structure for an issue comment"""

    author: str
    association: str
    edited: str
    status: str
    body: str

@dataclass
class Issue:
    """Data structure for an issue"""

    id: int
    title: str
    body: str
    comments: List[IssueComment] = field(default_factory=list)
    summary: str = ""

By implementing this change, the codebase will be more accessible and maintainable for a broader range of developers.