Skip to content

Conversation

@SebaCry
Copy link

@SebaCry SebaCry commented Sep 26, 2025

  • Add return type annotations and parameter types
  • Import necessary typing modules (Optional, Union, Flask, Response)
  • Improve code readability and IDE support for examples
  • All existing tests continue to pass

- Add return type annotations and parameter
  types
 - Import necessary typing modules (Optional,
 Union, Flask, Response)
 - Improve code readability and IDE support for
   examples
 - All existing tests continue to pass
@rafaqat75
Copy link

rafaqat75 commented Sep 28, 2025

LGTM, follows other areas of the source in style, thanks for adding the type hints!

@davidism davidism closed this Sep 28, 2025
@SebaCry
Copy link
Author

SebaCry commented Sep 28, 2025

Thanks!! I'll do it

@rafaqat75
Copy link

@davidism This PR got closed but I don't see it merged back into main. I'm still learning so was just wondering what that means. The code changes have been deemed unnecessary or they will be merged back into main at som point?

@ThiefMaster
Copy link
Member

IMHO the changes are not particularly useful and just make otherwise simple examples harder to understand, especially for beginners. Having type hints on view functions in an application do not add any rael benefit, unlike type hints on library code, utils, etc.

@SebaCry
Copy link
Author

SebaCry commented Oct 1, 2025

Well said, an opinion hahaha

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants