Skip to content

refactor: improve type safety and remove unnecessary decorators#2743

Open
sijie-Z wants to merge 1 commit into
DeepSourceCorp:masterfrom
sijie-Z:refactor/backend-improvements
Open

refactor: improve type safety and remove unnecessary decorators#2743
sijie-Z wants to merge 1 commit into
DeepSourceCorp:masterfrom
sijie-Z:refactor/backend-improvements

Conversation

@sijie-Z

@sijie-Z sijie-Z commented Jun 2, 2026

Copy link
Copy Markdown
  • Replace loose RepositoryInfo type alias (Dict[str, Union[str, int, Sequence]]) with strict TypedDict that documents all fields and their exact types.
  • Add IssueInfo TypedDict for issue data structure.
  • Remove unused typing imports (Dict, Union, Sequence).
  • Remove redundant @staticmethod decorators from unittest test methods.
  • AI Disclosure: This PR was created with assistance from Claude Code.

- Replace loose RepositoryInfo type alias (Dict[str, Union[str, int, Sequence]])
  with strict TypedDict that documents all fields and their exact types.
- Add IssueInfo TypedDict for issue data structure.
- Remove unused typing imports (Dict, Union, Sequence).
- Remove redundant @staticmethod decorators from unittest test methods.
@vercel

vercel Bot commented Jun 2, 2026

Copy link
Copy Markdown

@sijie-Z is attempting to deploy a commit to the DeepSource Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant