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

Improve type annotations in core functions #850

Merged
merged 44 commits into from
Jun 25, 2024

Commits on May 20, 2024

  1. Configuration menu
    Copy the full SHA
    bb62f27 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    469f81b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    59bcb5f View commit details
    Browse the repository at this point in the history

Commits on May 21, 2024

  1. Configuration menu
    Copy the full SHA
    5dd7919 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7e6762b View commit details
    Browse the repository at this point in the history
  3. Strongly type JSON objects

    This will improve typing when we accept user-provided arguments.
    Though, it mandates our users to annotate/cast the return values
    explicitly due to type variances.  To completely resolve this issue,
    we have to introduce typed DTOs using pydantic or msgspec.
    achimnol committed May 21, 2024
    Configuration menu
    Copy the full SHA
    782eb16 View commit details
    Browse the repository at this point in the history
  4. Make annotations static

    achimnol committed May 21, 2024
    Configuration menu
    Copy the full SHA
    5079428 View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2024

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

Commits on Jun 11, 2024

  1. Merge branch 'master' into refactor/improve-type-anno-for-query

    - `utils._AsyncCM` is completely removed and replaced with the intrinsic
      `contextlib._AsyncGeneratorContextManager`.
    achimnol committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    6d1b21a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    05889ec View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2024

  1. Configuration menu
    Copy the full SHA
    b392be6 View commit details
    Browse the repository at this point in the history
  2. Fix Python 3.8 compatibility

    achimnol committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    f017a6a View commit details
    Browse the repository at this point in the history
  3. Improve type-anno

    achimnol committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    16036a9 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2024

  1. Configuration menu
    Copy the full SHA
    e2ddebe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    18edd51 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ac0cbfc View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2024

  1. Use custom recursive JSON types only for arguments

    - If they are used in return values, the caller should perform extra
      type-narrowing or casting to pick a final type from union to avoid
      type check failures.
    - In a long term, it is better to declare typed DTOs.
    achimnol committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    b2a7067 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    22e9353 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d90fe6b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a2f22e1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d6232a6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e81f5d0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0fe9810 View commit details
    Browse the repository at this point in the history
  8. Let's check gc

    achimnol committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    5d31afb View commit details
    Browse the repository at this point in the history
  9. Use consistent image names

    achimnol committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    5deb9b2 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    4813783 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    25f0dd4 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    12bc4bd View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    8fa6eb9 View commit details
    Browse the repository at this point in the history
  14. Use literal annotations

    achimnol committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    fdb5b5d View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    d07f033 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    db0cb44 View commit details
    Browse the repository at this point in the history
  17. Add news fragment

    achimnol committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    3ca6a6f View commit details
    Browse the repository at this point in the history
  18. Annotate more test codes

    achimnol committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    4ce3d30 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    398e04d View commit details
    Browse the repository at this point in the history
  20. Minor code cleanup

    achimnol committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    1c51f6a View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    63b339d View commit details
    Browse the repository at this point in the history
  22. Fix again

    achimnol committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    c543deb View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    88412bb View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    3b46a3f View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    3c48b61 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    b461c4c View commit details
    Browse the repository at this point in the history
  27. Update test_clean_filters

    achimnol committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    e9ea317 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    d6ccbe0 View commit details
    Browse the repository at this point in the history