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

Generate TypedDicts for python inputs #15957

Draft
wants to merge 16 commits into
base: master
Choose a base branch
from
Draft

Generate TypedDicts for python inputs #15957

wants to merge 16 commits into from

Commits on Jun 4, 2024

  1. codegen(python): Implement support for TypedDict for input objects

    This provides hints when using dictionaries as inputs, so we
    get better developer tools with more succinct code
    Anthony King authored and julienp committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    e091570 View commit details
    Browse the repository at this point in the history
  2. fix: propagate that we're building for a dictionary

    This lets us catch Sequences, mappings, etc..
    
    Also drop the redundant 'Required', they're required by default.
    Anthony King authored and julienp committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    db79e7f View commit details
    Browse the repository at this point in the history
  3. Add dependency on typing-extensions

    justinvp authored and julienp committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    fce6731 View commit details
    Browse the repository at this point in the history
  4. Fix optional

    justinvp authored and julienp committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    b0cdae0 View commit details
    Browse the repository at this point in the history
  5. "Export" the dict

    justinvp authored and julienp committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    7b0c5f2 View commit details
    Browse the repository at this point in the history
  6. Include property doc comments

    justinvp authored and julienp committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    65a4d1a View commit details
    Browse the repository at this point in the history
  7. Fix lint

    justinvp authored and julienp committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    64ec45d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f864e46 View commit details
    Browse the repository at this point in the history
  9. Fix typo in comment

    julienp committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    decb7e3 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    15f361b View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6053bfe View commit details
    Browse the repository at this point in the history
  12. Update tests

    julienp committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    a7b0d2d View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    d9bf8a5 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    fa1121a View commit details
    Browse the repository at this point in the history
  15. Disable TypedDict for mypy

    julienp committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    747f768 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    409c611 View commit details
    Browse the repository at this point in the history