Commit Graph

458 Commits

Author SHA1 Message Date
Samuel Colvin 6be7c2103b Merge pull request #706 from koxudaxi/support_forwardred_in_python36
support ForwardRef in Python 3.6
2019-08-05 13:27:23 +01:00
Koudai Aono 75afb3f178 merge HISTORY 2019-08-05 21:01:28 +09:00
Koudai Aono b5d5e591ec Merge remote-tracking branch 'upstream/master' into support_forwardred_in_python36 2019-08-05 21:00:01 +09:00
Koudai Aono cffcb39c7c add unittest for python3.7 2019-08-05 20:46:56 +09:00
Samuel Colvin b479b93c40 Merge pull request #712 from MrMrRobat/__dict__-instead-of-__values__
Rename BaseModel.__values__ to  BaseModel.__dict__
2019-08-05 11:48:09 +01:00
Samuel Colvin bbdc8e8038 add test_init_inspection 2019-08-05 11:35:49 +01:00
Arseny Boykov f01cedca14 Merge branch 'master' into __dict__-instead-of-__values__ 2019-08-05 12:58:46 +03:00
Samuel Colvin 49178a368d Merge pull request #676 from dmontagu/type-in-validation-error
Add type name to ValidationError error message
2019-08-05 10:50:30 +01:00
MrMrRobat 86be8b2012 Union changes messages 2019-08-05 12:49:12 +03:00
Samuel Colvin 7ace58cad8 Merge branch 'master' into type-in-validation-error 2019-08-05 10:37:42 +01:00
MrMrRobat 0c3093be5f Merge remote-tracking branch 'origin/__dict__-instead-of-__values__' into __dict__-instead-of-__values__ 2019-08-04 01:35:07 +03:00
MrMrRobat 7f87dda20e Remove redundant __dir__ method 2019-08-04 01:34:44 +03:00
Arseny Boykov 33ef9ce1f2 Update HISTORY.rst 2019-08-03 22:48:28 +03:00
MrMrRobat 1d76605736 Update history 2019-08-03 18:42:41 +03:00
MrMrRobat bbf0b4bfbe Add __values__ property with deprecation warning and test for it 2019-08-03 18:05:17 +03:00
MrMrRobat abd773b5a5 Rename BaseModel.__values__ to BaseModel.__dict__, remove BaseModel.__getattr__ 2019-08-03 17:19:29 +03:00
Koudai Aono 879a24ecb7 delete @skip_not_37 on forward_ref tests 2019-08-03 15:10:26 +09:00
Koudai Aono 8e0455c9c6 change test_py37.py to test_forward_ref.py 2019-08-02 21:47:15 +09:00
Samuel Colvin 39ee92ae19 Merge pull request #708 from samuelcolvin/dependabot/pip/flake8-quotes-2.1.0
Bump flake8-quotes from 2.0.1 to 2.1.0
2019-08-02 11:07:23 +01:00
Koudai Aono 84d7c4aaf2 fix skip_not_36 condition 2019-08-02 16:24:16 +09:00
Koudai Aono 572239b692 remove unnecessary a assignment 2019-08-02 16:01:59 +09:00
Koudai Aono 45b4223ddb update README and History 2019-08-02 15:45:25 +09:00
dependabot-preview[bot] a3df3aa314 Bump flake8-quotes from 2.0.1 to 2.1.0
Bumps [flake8-quotes](https://github.com/zheller/flake8-quotes) from 2.0.1 to 2.1.0.
- [Release notes](https://github.com/zheller/flake8-quotes/releases)
- [Commits](https://github.com/zheller/flake8-quotes/compare/2.0.1...2.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-02 06:39:16 +00:00
Koudai Aono a1f4f2ada2 add evaluate_forwardref() 2019-08-02 15:20:15 +09:00
Koudai Aono a4292aa24f support ForwardRef in Python 3.6 2019-08-02 13:22:09 +09:00
Samuel Colvin 719501c68b uprev 2019-07-31 12:06:08 +01:00
Samuel Colvin 04756627a3 Merge pull request #700 from samuelcolvin/dependabot/pip/docutils-0.15.2
Bump docutils from 0.14 to 0.15.2
2019-07-31 09:43:19 +01:00
Samuel Colvin 15e81b9aaf Make .json() work for EnumError (#697)
* Make .json() work for EnumError

* Update history
2019-07-31 09:12:44 +01:00
dmontagu f881d4f30c Make .json() work for EnumError (#697)
Make .json() work for EnumError, fix #696
2019-07-31 09:12:18 +01:00
dependabot-preview[bot] a9d9ba3e0a Bump docutils from 0.14 to 0.15.2
Bumps [docutils](http://docutils.sourceforge.net/) from 0.14 to 0.15.2.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-31 06:40:24 +00:00
David Montague 4500ab7483 Update history 2019-07-30 12:37:34 -07:00
David Montague a028687f98 Make .json() work for EnumError 2019-07-30 11:38:25 -07:00
dependabot-preview[bot] b58f31dfd9 Bump coverage from 4.5.3 to 4.5.4 (#695)
Bumps [coverage](https://github.com/nedbat/coveragepy) from 4.5.3 to 4.5.4.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/coverage-4.5.3...coverage-4.5.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-30 10:51:41 +01:00
dependabot-preview[bot] 99dc5c1c83 Bump cython from 0.29.12 to 0.29.13 (#694)
Bumps [cython](https://github.com/cython/cython) from 0.29.12 to 0.29.13.
- [Release notes](https://github.com/cython/cython/releases)
- [Changelog](https://github.com/cython/cython/blob/master/CHANGES.rst)
- [Commits](https://github.com/cython/cython/compare/0.29.12...0.29.13)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-29 10:37:01 +01:00
dependabot-preview[bot] cb81ca66b2 Bump cython from 0.29.11 to 0.29.12 (#689)
Bumps [cython](https://github.com/cython/cython) from 0.29.11 to 0.29.12.
- [Release notes](https://github.com/cython/cython/releases)
- [Changelog](https://github.com/cython/cython/blob/master/CHANGES.rst)
- [Commits](https://github.com/cython/cython/compare/0.29.11...0.29.12)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-25 18:52:55 +01:00
dependabot-preview[bot] 85f1016c4a Bump pytest from 5.0.0 to 5.0.1 (#688)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.0.0...5.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-25 18:17:39 +01:00
dependabot-preview[bot] f55a633296 Bump mypy from 0.711 to 0.720 (#686)
Bumps [mypy](https://github.com/python/mypy) from 0.711 to 0.720.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.711...v0.720)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-25 18:17:27 +01:00
dependabot-preview[bot] 3dca559e82 Bump flake8 from 3.7.7 to 3.7.8 (#685)
Bumps [flake8](https://gitlab.com/pycqa/flake8) from 3.7.7 to 3.7.8.
- [Release notes](https://gitlab.com/pycqa/flake8/tags)
- [Commits](https://gitlab.com/pycqa/flake8/compare/3.7.7...3.7.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-25 18:17:13 +01:00
David Montague 8135f470e4 Incorporate feedback 2019-07-25 00:15:54 -07:00
David Montague b960f71586 Incorporate feedback 2019-07-25 00:06:44 -07:00
David Montague fd7ec970be Update history 2019-07-25 00:06:44 -07:00
David Montague 20619ea901 Add type name to ValidationError error message 2019-07-25 00:05:57 -07:00
Samuel Colvin c28d469f5b uprev 2019-07-24 18:49:13 +01:00
Arseny Boykov fae3588f42 Add Config.keep_untouched for custom descriptors support (#679)
* Add Config.keep_untouched for custom descriptors support

* Update HISTORY.rst

* Separate test

* Fix tests

* Update pydantic/validators.py

Co-Authored-By: Samuel Colvin <samcolvin@gmail.com>

* Update HISTORY.rst

Co-Authored-By: Samuel Colvin <samcolvin@gmail.com>

* Rename TYPE_BLACKLIST -> UNTOUCHED_TYPES, fix tests and formatting

* Update docs/index.rst

Co-Authored-By: Samuel Colvin <samcolvin@gmail.com>
2019-07-24 16:33:49 +01:00
dmontagu b702eb8738 Update error message for enum validator (#673)
* Update error message for enum validator

* Update history
2019-07-24 10:53:10 +01:00
dmontagu b09e6977b9 Bugfix for generic types with parameterized generic fields (#672)
* Bugfix for generic types with parameterized generic fields

* Update history

* Skip new tests in python3.6
2019-07-24 10:52:44 +01:00
euri10 1e83ac5137 Color schema (#666)
* First attempt at adding Color in schema() generation

* Lint

* Add history

* Make docs pass

* Added format color

* Format color

* Making history...:)
2019-07-24 10:52:05 +01:00
Arseny Boykov 1b4c1a884c Fix alias_generator and field config conflict (#658)
* Fix alias_generator and field config conflict (see #645)

* HISTORY.rst update: fix alias_generator and field config conflict

* Merge HISTORY.rst with master
2019-07-24 10:32:40 +01:00
Sebastián Ramírez 886d05e100 Use inspect.getdoc to get model description (#657)
* Use inspect.getdoc to get model description

This instead of the custom function clean_docstring.
It also allows models to inherit a description, the same way classes inherit a docstring.

* Update History
2019-07-24 10:00:16 +01:00
Arseny Boykov 74768c1535 Add advanced exclude and include support for dict, json and copy (#648)
* Add advanced exclude support for dict, json and copy

* Add advanced exclude support for dict, json and copy

Add new version section (v0.31)

* Add advanced include support, add more tests, improve code style
Rename ValueExclude to ValueItems and move it to utils
Use old logic to calculate keys, but still exclude it in _iter

* Add more tests for ValueItems

* Removed update arg check in _calculate_keys for return None
This will increase speed when no include or exclude given and skip_defaults is False

* Fix formatting, remove duplicate imports

* Add # pragma: no cover to 'if TYPE_CHECKING:' block

* tweaks and coverage

* fix history

* Add docs

* tweak docs
2019-07-24 09:58:38 +01:00