Skip to content

New typing support #323

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

Merged
merged 14 commits into from
Mar 3, 2025

Conversation

sergey-bondarenko-qs
Copy link
Contributor

@sergey-bondarenko-qs sergey-bondarenko-qs commented Feb 27, 2025

  • Dropped support of Python earlier than 3.11
  • Dropped support of Django earlier than 4.2
  • Dropped support of SQLAlchemy earlier than 1.4
  • Added support of Python 3.13
  • Added tests of new typing features for event system
  • Reviewed new typing-related things since Python 3.8:
    • Added support of Union[A, B]A | B
    • Added support of List[T]list[T], Dict[K, V]dict[K, V], etc.
    • Reviewed Never and NoReturn types - they are only for forever-looping functions, no sense to add their support
    • Reviewed Self return type support - not suitable for endpoints, they do not return classes
    • Added test for TypeAlias
    • Reviewed TypeGuard - not suitable for endpoints
    • Reviewed LiteralString - not suitable for endpoints, they usually return strings
    • Reviewed Concatenate - not suitable for endpoints
    • Added test for TypedDict

mofr
mofr previously approved these changes Feb 27, 2025
@sergey-bondarenko-qs sergey-bondarenko-qs marked this pull request as ready for review February 27, 2025 18:53
mofr
mofr previously approved these changes Feb 28, 2025
@mofr mofr merged commit 3efd5f4 into WinterFramework:master Mar 3, 2025
5 checks passed
@sergey-bondarenko-qs sergey-bondarenko-qs deleted the new_typing_support branch March 3, 2025 16:12
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.

2 participants