Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions oocana/oocana/credential.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
from dataclasses import dataclass

__all__ = ["CredentialInput"]


@dataclass(frozen=True)
Copy link

Copilot AI Jan 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All other dataclasses in this package are declared with kw_only=True (e.g., oocana/oocana/handle.py:7, oocana/oocana/data.py:41, oocana/oocana/schema.py:38). To keep CredentialInput consistent and avoid accidental positional-argument usage, consider adding kw_only=True here as well.

Copilot uses AI. Check for mistakes.
class CredentialInput:
def __init__(self, type: str, id: str):
self.type = type
self.id = id
"""
Represents a credential input for authentication queries.

Attributes:
type: The type of credential (e.g., 'oauth', 'api_key')
id: The unique identifier for the credential
"""
type: str
id: str
Loading