Skip to content
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

Add Generic dataclasses #259

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

Commits on Jun 24, 2024

  1. support generic dataclasses

    onursatici authored and mvanderlee committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    bc46a23 View commit details
    Browse the repository at this point in the history
  2. support nested generic dataclasses

    onursatici authored and mvanderlee committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    db32163 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8b82276 View commit details
    Browse the repository at this point in the history
  4. support py3.6

    onursatici authored and mvanderlee committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    f2734cc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9a5dc09 View commit details
    Browse the repository at this point in the history
  6. Add support for deep generics with swapped TypeVars.

    * Raise descriptive error for unbound fields.
    mvanderlee committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    8443336 View commit details
    Browse the repository at this point in the history
  7. Fix tests after rebase

    mvanderlee committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    8a0f837 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f484596 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    80dab91 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2024

  1. Break generic functions out into it's own file and add support for an…

    …notated generics, partials, and callables
    mvanderlee committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    4531c35 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2024

  1. Remove support for callable annotations

    This approach was unsafe.
    See PR lovasoa#259 for more details
    mvanderlee committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    dd34efc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7ac088d View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2024

  1. Fix import style and some docstrings, and reuse is_generic_alias inst…

    …ead of duplicating logic
    mvanderlee committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    b3362ba View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    db95e64 View commit details
    Browse the repository at this point in the history
  3. Improved doc string

    mvanderlee committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    a494984 View commit details
    Browse the repository at this point in the history
  4. Clean up

    * Differentiate between Generics and container type functions
    * Tie get_args and get_origin functions to Annotated import.
    * Rename function and add test to clarify forward ref use case
    mvanderlee committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    78fcd4a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8797b2b View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2024

  1. Remove the need to call get_type_hints

    I don't want to loop over the fields multiple times so internalized the relevant code from typing.get_type_hints into the generic_resolver
    mvanderlee committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    4ef0bdf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d09312b View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2024

  1. Configuration menu
    Copy the full SHA
    3b5783a View commit details
    Browse the repository at this point in the history