Skip to content

Conversation

layday
Copy link
Contributor

@layday layday commented Feb 25, 2019

As per the json.dumps documentation.

Change Summary

This changes the type hint of indent to accept any of None, int and str in accordance with the documentation of json.dumps.

Related issue number

Checklist

  • Unit tests for the changes exist
  • Tests pass on CI and coverage remains at 100%
  • Documentation reflects the changes where applicable
  • HISTORY.rst has been updated
    • if this is the first change since a release, please add a new section
    • include the issue number or this pull request number #<number>
    • include your github username @<whomever>

As per the json.dumps documentation.
@layday
Copy link
Contributor Author

layday commented Feb 25, 2019

Not sure if this would be worth mentioning in HISTORY (I would think not).

@codecov
Copy link

codecov bot commented Feb 25, 2019

Codecov Report

Merging #406 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #406   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          14     14           
  Lines        2068   2068           
  Branches      420    420           
=====================================
  Hits         2068   2068

@samuelcolvin
Copy link
Member

samuelcolvin commented Feb 25, 2019 via email

@samuelcolvin samuelcolvin merged commit 0a9b720 into pydantic:master Feb 26, 2019
alexdrydew pushed a commit to alexdrydew/pydantic that referenced this pull request Dec 23, 2023
* adding definitions support

* fix rust benchmarks

* rename "recursive" -> "definition"

* in-line some valdiators

* error positions for definitions errors

* inlining, take 3

* cleanup

* correctly inline serializers

* switch to defintions as a core schema type

* errors on repeated refs, more tests

* Fix benches

* Update src/build_context.rs

* Add metadata and serialization to definitions schema

---------

Co-authored-by: David Montague <35119617+dmontagu@users.noreply.github.com>
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