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

Update types - Explorer 0.7.2 #118

Merged

Conversation

cristineguadelupe
Copy link
Contributor

No description provided.

@@ -17,6 +17,8 @@ defmodule Kino.Explorer do

@type t :: Kino.JS.Live.t()

@numeric_types [{:f, 64}, :integer]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would write a function and I would already support some of the upcoming types:

defp numeric_type?({:s, _}), do: true
defp numeric_type?({:u, _}), do: true
defp numeric_type?({:f, _}), do: true
# For backwards compatibility
defp numeric_type?(other), do: other in [:float, :integer]

Copy link
Contributor

@josevalim josevalim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge and ship it!!!!

@cristineguadelupe cristineguadelupe merged commit b1cf10d into livebook-dev:main Dec 2, 2023
1 check passed
@cristineguadelupe cristineguadelupe deleted the cg-update-float-type branch December 2, 2023 16:27
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