Skip to content

Added Type Annotations to stackapi Class Methods #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aqib-abdullahi
Copy link

This pull request enhances the code quality of the StackAPI class by adding type annotations to its methods. The added type hints improve code readability and provide better support for static type checkers and IDEs.

changes i made:

  • Added type annotations to method signatures in the StackAPI class.
  • Updated method parameters and return types to reflect their actual usage.
  • Ensured compatibility with existing functionality and Python's type hinting system.
  • Shifted some parts of the docstring of StackAPIError class from the class to constructor

Benefits:

  • Improved code readability and maintainability.
  • Enhanced support for static type analysis tools.
  • Reduced potential for type-related bugs.

These changes do not affect the functionality of the code and no new features or bug fixes were introduced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant