Skip to content

[Backport 8.x] Add Type hints to function.py #1832

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 1 commit into from
May 21, 2024

Conversation

github-actions[bot]
Copy link

Backport 76a57fd from #1827.

* feat: add first type annotations

* feat: add _JSONSafeTypes annotation to to_dict methods

* feat: add typing for SF function

* chore: fix linting

* rename _JSONSafeTypes to JSONType

* format code

---------

Co-authored-by: Miguel Grinberg <[email protected]>
(cherry picked from commit 76a57fd)
@miguelgrinberg miguelgrinberg merged commit dcd39b2 into 8.x May 21, 2024
17 checks passed
@miguelgrinberg miguelgrinberg deleted the backport-1827-to-8.x branch May 21, 2024 23:01
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