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

[Enhancement] Enhancing the logic of the upgrade of dict to schema for function parameters and return values #1388

Closed
Peefy opened this issue Jun 3, 2024 · 1 comment
Assignees

Comments

@Peefy
Copy link
Contributor

Peefy commented Jun 3, 2024

Enhancement

  • Parameter
schema Person:
    name: str

f = lambda p: Person {
    p
}

p = f({n}) # Note `n` here will not trigger the `name` attribute completion of the schema `Person`
  • Return values
schema Person:
    name: str

f = lambda -> Person {
    {
        name: "!23" # Note `n` here will not trigger the `name` attribute completion of the schema `Person`
    }
}
@Peefy Peefy changed the title [Enhancement] Enhancing the logic of the upgrade of dict to schema for function parameters [Enhancement] Enhancing the logic of the upgrade of dict to schema for function parameters and return values Jun 3, 2024
@Peefy Peefy added this to the v0.9.0 Release milestone Jun 5, 2024
@Peefy
Copy link
Contributor Author

Peefy commented Jun 24, 2024

Closed by #1419

@Peefy Peefy closed this as completed Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants