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

utils: teach our json serializer to handle more types #1907

Merged
merged 1 commit into from
Jan 5, 2017

Conversation

xrmx
Copy link
Contributor

@xrmx xrmx commented Jan 5, 2017

Namely datetime.time and numpy.bool_. While at it add tests. The big diff on the tests are because i've run dos2unix on them

assert json_iso_dttm_ser(t) == t.isoformat()

with self.assertRaises(TypeError):
json_int_dttm_ser("this is not a date")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

gah this should be iso of course

Namely datetime.time and numpy.bool_

Refs: apache#1900
Refs: apache#1903
@xrmx xrmx force-pushed the moretypesjsonserializer branch from bd016ef to 44dc962 Compare January 5, 2017 16:43
@mistercrunch mistercrunch merged commit e3b296c into apache:master Jan 5, 2017
SalehHindi pushed a commit to SalehHindi/superset that referenced this pull request Jun 9, 2017
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.15.2 labels Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.15.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants