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

bug(interactive-repr): interactive repr of null date scalar raises an exception #10780

Closed
1 task done
cpcloud opened this issue Feb 3, 2025 · 0 comments · Fixed by #10784
Closed
1 task done

bug(interactive-repr): interactive repr of null date scalar raises an exception #10780

cpcloud opened this issue Feb 3, 2025 · 0 comments · Fixed by #10784
Labels
bug Incorrect behavior inside of ibis
Milestone

Comments

@cpcloud
Copy link
Member

cpcloud commented Feb 3, 2025

What happened?

In [10]: from ibis.interactive import *

In [11]: s = ibis.null("date")

In [12]: s

raises an exception:

│ …/ibis/expr/types/pretty.py:139 in _                                                             │
│                                                                                                  │
│   136 @format_values.register(dt.Date)                                                           │
│   137 def _(dtype, values, **fmt_kwargs):                                                        │
│   138 │   dates = [v.date() if isinstance(v, datetime.datetime) else v for v in values]          │
│ ❱ 139 │   return [Text.styled(d.isoformat(), "magenta") for d in dates]                          │
│   140                                                                                            │
│   141                                                                                            │
│   142 @format_values.register(dt.Time)                                                           │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'NoneType' object has no attribute 'isoformat'

What version of ibis are you using?

main @ 12a45cf

What backend(s) are you using, if any?

No response

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior inside of ibis
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant