dependabot[bot]
f96a6131a3
build(deps): bump mypy from 0.931 to 0.942 ( #3968 )
...
* build(deps): bump mypy from 0.931 to 0.942
Bumps [mypy](https://github.com/python/mypy ) from 0.931 to 0.942.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v0.931...v0.942 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* build(deps): bump mypy from 0.931 to 0.942
Bumps [mypy](https://github.com/python/mypy ) from 0.931 to 0.942.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v0.931...v0.942 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* fix mypy
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Samuel Colvin <s@muelcolvin.com >
2022-04-02 14:50:07 +01:00
Samuel Colvin
f0acf6efe7
Prevent subclasses of bytes being converted to bytes ( #3707 )
...
* adding a test
* fix and add change description
2022-04-02 14:45:31 +01:00
Tom Milligan
02eb182db0
fix: clarify that discriminated unions do not support singletons ( #3639 )
2022-04-02 14:06:11 +01:00
dependabot[bot]
7c05a61e4a
build(deps): bump pytest-mock from 3.6.1 to 3.7.0 ( #3967 )
...
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock ) from 3.6.1 to 3.7.0.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases )
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v3.6.1...v3.7.0 )
---
updated-dependencies:
- dependency-name: pytest-mock
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-02 13:25:58 +01:00
dependabot[bot]
c12382d00f
build(deps): bump twine from 3.7.1 to 4.0.0 ( #3965 )
...
Bumps [twine](https://github.com/pypa/twine ) from 3.7.1 to 4.0.0.
- [Release notes](https://github.com/pypa/twine/releases )
- [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst )
- [Commits](https://github.com/pypa/twine/compare/3.7.1...4.0.0 )
---
updated-dependencies:
- dependency-name: twine
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-02 08:57:22 +01:00
dependabot[bot]
d8054380d3
build(deps): bump pytest from 6.2.5 to 7.1.1 ( #3926 )
...
Bumps [pytest](https://github.com/pytest-dev/pytest ) from 6.2.5 to 7.1.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases )
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pytest-dev/pytest/compare/6.2.5...7.1.1 )
---
updated-dependencies:
- dependency-name: pytest
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-02 08:57:08 +01:00
dependabot[bot]
19064138e4
build(deps): bump hypothesis from 6.31.6 to 6.41.0 ( #3964 )
...
Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis ) from 6.31.6 to 6.41.0.
- [Release notes](https://github.com/HypothesisWorks/hypothesis/releases )
- [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.31.6...hypothesis-python-6.41.0 )
---
updated-dependencies:
- dependency-name: hypothesis
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-02 08:56:39 +01:00
dependabot[bot]
bf5fdfc618
build(deps): bump black from 21.12b0 to 22.3.0 ( #3950 )
...
* build(deps): bump black from 21.12b0 to 22.3.0
Bumps [black](https://github.com/psf/black ) from 21.12b0 to 22.3.0.
- [Release notes](https://github.com/psf/black/releases )
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md )
- [Commits](https://github.com/psf/black/commits/22.3.0 )
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
* apply new black styles, fix docs
* try upgrading pip before fastapi tests
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Samuel Colvin <s@muelcolvin.com >
2022-04-02 08:35:55 +01:00
dependabot[bot]
d7a8272d7e
build(deps): bump mypy from 0.930 to 0.931 ( #3656 )
...
Bumps [mypy](https://github.com/python/mypy ) from 0.930 to 0.931.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v0.930...v0.931 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-01 23:30:57 +00:00
dependabot[bot]
9967f0ebe3
build(deps): bump pre-commit from 2.16.0 to 2.17.0 ( #3731 )
...
Bumps [pre-commit](https://github.com/pre-commit/pre-commit ) from 2.16.0 to 2.17.0.
- [Release notes](https://github.com/pre-commit/pre-commit/releases )
- [Changelog](https://github.com/pre-commit/pre-commit/blob/master/CHANGELOG.md )
- [Commits](https://github.com/pre-commit/pre-commit/compare/v2.16.0...v2.17.0 )
---
updated-dependencies:
- dependency-name: pre-commit
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-01 22:37:59 +00:00
dependabot[bot]
b90e128175
build(deps): bump coverage from 6.2 to 6.3.2 ( #3839 )
...
Bumps [coverage](https://github.com/nedbat/coveragepy ) from 6.2 to 6.3.2.
- [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/6.2...6.3.2 )
---
updated-dependencies:
- dependency-name: coverage
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-01 22:35:04 +00:00
Eric Jolibois
9d631a3429
fix(ci): update fastapi tests ( #3690 )
...
* use python 3.10 to run fastapi tests
* fix fastapi test call
2022-01-17 22:30:39 +01:00
Samuel Colvin
6f46a5a146
drop python3.6 support ( #3605 )
...
* drop python3.6 support
* revert small change
* fix 3.7 failures
* more cases and cleanup
* add change description
2022-01-02 13:53:45 +00:00
Samuel Colvin
87da9ac23f
apply update_forward_refs to json_encoders ( #3595 )
...
* apply update_forward_refs to json_encoders, fix #3583
* linting
* mypy
* avoid use of ForwardRef with python3.6
* fix ForwardRef usage, take 2
* coverage
2021-12-31 14:44:09 +00:00
Samuel Colvin
6f26a1ce18
Support mypy 0.910 to 0.930 including CI tests ( #3594 )
...
* cleanup bumping mypy to 0.930, #3573
* add tests for old mypy
* tweak test-old-mypy job
* alter mypy plugin to work with older versions
* mypy.py compatibility with multiple versions
* fix mypy tests to allow for varied output
* toml parsing, fix #3579
* formatting :-(
* ignore missing types for toml package
* remove unused ignore_missing_imports
* undo removal of ignore_missing_imports for dotenv
* tweak coverage ignore
* fully uninstall mypy and toml/tomli
2021-12-30 13:49:43 +00:00
Eric Jolibois
8ef492b85f
build(deps): bump mypy from 0.920 to 0.930 ( #3573 )
...
* build(deps): bump mypy from 0.920 to 0.930
* fix: avoid mypy plugin crash
Due to https://github.com/python/mypy/pull/11332 , mypy would crash
because `__builtins__` is not part of `ctx.api` modules, `builtins` is
* fix tests
2021-12-29 16:51:35 +00:00
Eric Jolibois
e8822775e3
fix: support generic models with discriminated union ( #3551 )
2021-12-24 13:17:39 +00:00
Eric Jolibois
edad0dbc46
fix: keep old behaviour of json() by default ( #3542 )
...
* fix: handle basemodel fallback for custom encoders
* put back old behaviour and add to_dict
* typo
Co-authored-by: Christian Bundy <christianbundy@fraction.io >
Co-authored-by: Christian Bundy <christianbundy@fraction.io >
2021-12-24 13:14:13 +00:00
dependabot[bot]
e14e7561ed
build(deps): bump mypy from 0.910 to 0.920 ( #3552 )
...
* build(deps): bump mypy from 0.910 to 0.920
Bumps [mypy](https://github.com/python/mypy ) from 0.910 to 0.920.
- [Release notes](https://github.com/python/mypy/releases )
- [Commits](https://github.com/python/mypy/compare/v0.910...v0.920 )
---
updated-dependencies:
- dependency-name: mypy
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* fix mypy issues
* fix mypy issues
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: PrettyWood <em.jolibois@gmail.com >
2021-12-24 13:11:05 +00:00
dependabot[bot]
30015aca95
build(deps): bump hypothesis from 6.31.4 to 6.31.6 ( #3554 )
...
Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis ) from 6.31.4 to 6.31.6.
- [Release notes](https://github.com/HypothesisWorks/hypothesis/releases )
- [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.31.4...hypothesis-python-6.31.6 )
---
updated-dependencies:
- dependency-name: hypothesis
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-24 13:10:50 +00:00
Eric Jolibois
81b13ff3b4
fix: rename schema util into schema_of ( #3547 )
2021-12-22 19:42:56 +00:00
Eric Jolibois
fe2a5e2170
fix: smart union with typeddict ( #3543 )
2021-12-22 19:39:18 +00:00
Hyun Sol
c532e8324e
#3234 exclude extra field when represent model ( #3241 )
...
* exclude extra field when represent model
* add test code
* fix W293
* add change md
* Update changes/3234-cocolman.md
Co-authored-by: Samuel Colvin <samcolvin@gmail.com >
* Update pydantic/main.py
Co-authored-by: Samuel Colvin <samcolvin@gmail.com >
* Update tests/test_main.py
Co-authored-by: Samuel Colvin <samcolvin@gmail.com >
Co-authored-by: Samuel Colvin <samcolvin@gmail.com >
2021-12-19 16:08:26 +00:00
Eric Jolibois
93faefb4a9
fix: nested ORM from nested dictionaries ( #3182 )
...
closes #3181
2021-12-19 10:41:51 +00:00
Eric Jolibois
5ad73d0388
fix: models copied via Config.copy_on_model_validation always have all fields ( #3201 )
...
Small regression in #2231 .
The shallow copy done with `Config.copy_on_model_validation = True` (default behaviour)
was using excluded / included fields when it should just copy everything
closes #3195
2021-12-19 10:37:30 +00:00
Mark Trifonov
be246701c5
Nested env ( #3159 )
...
* Environment names for complex types #2304
* nested env disabled by default
* cleanup
* nested env settings: simplified and mypy fixes
* nested env settings: config, test, doc
* nested env settings: changes file
* nested env settings: cleanup
* Apply suggestions from code review
Co-authored-by: Samuel Colvin <samcolvin@gmail.com >
* Apply suggested changes from code review
* lint fix
* changes from code review
* simplify explosing env vars
* linting
Co-authored-by: Mark Trifonov <>
Co-authored-by: Samuel Colvin <samcolvin@gmail.com >
Co-authored-by: Samuel Colvin <s@muelcolvin.com >
2021-12-18 20:56:14 +00:00
Jaakko Moisio
63337fbadc
Add optional field argument to __modify_schema__() ( #3434 )
...
Co-authored-by: Samuel Colvin <s@muelcolvin.com >
2021-12-18 20:55:22 +00:00
dependabot[bot]
f36040a4a3
build(deps): bump twine from 3.7.0 to 3.7.1 ( #3519 )
...
Bumps [twine](https://github.com/pypa/twine ) from 3.7.0 to 3.7.1.
- [Release notes](https://github.com/pypa/twine/releases )
- [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst )
- [Commits](https://github.com/pypa/twine/compare/3.7.0...3.7.1 )
---
updated-dependencies:
- dependency-name: twine
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-18 20:55:05 +00:00
dependabot[bot]
b03d3ed2ca
build(deps): bump hypothesis from 6.30.1 to 6.31.4 ( #3520 )
...
Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis ) from 6.30.1 to 6.31.4.
- [Release notes](https://github.com/HypothesisWorks/hypothesis/releases )
- [Commits](https://github.com/HypothesisWorks/hypothesis/compare/hypothesis-python-6.30.1...hypothesis-python-6.31.4 )
---
updated-dependencies:
- dependency-name: hypothesis
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-18 20:54:58 +00:00
Marcelo Trylesinski
7eaa582980
Add AmqpDsn class ( #3254 )
...
* Add RabbitmqDsn
Will update once finished - haven't looked at the CONTRIB yet. Want to test locally to see if it works.
* added tests; added to docs
* added changes
* fixed import in networks.py
* fixed linting issues; fixed __init__.py import issue
* sorted imports
* added trailing comma on imports
* Merge master
* Change class name from RabbitmqDsn to RabbitMqDsn
* Format code
* Rename change file and prettify content
* Fix RabbitMQ name on documentation
* Add a trivial test
* Address Samuel and Nuno's comments
* Refactor AMQP tests according to Redis tests style
* Update docs/examples/settings_main.py
* cleanup
Co-authored-by: Thomas <thomas@9bitbyte.com >
Co-authored-by: Thomas Crha <tom.crha@dragonflytechnologies.com >
Co-authored-by: Samuel Colvin <s@muelcolvin.com >
2021-12-18 20:40:16 +00:00
Eric Jolibois
c834f3419d
Support discriminated union ( #2336 )
...
* feat: add discriminated union
* feat: add OpenAPI spec schema
* test: add basic example for generated schema
* test: add validation tests
* docs: add basic documentation
* fix: support ForwardRef
* test: add ForwardRef case
* fix: false positive lint error
https://github.com/PyCQA/pyflakes/pull/600
* improve error
* add schema/schema_json utils
* fix tests after merge
* refactor: add `discriminator` attribute to `FieldInfo`
* refactor: @cybojenix remarks
* fix schema with forward ref
* start nested
* feat: add allowed values in error message
* fix wrong check
Same example with
```
class FooDomainA(BaseModel):
__root__: Union[FooDomainAA, FooDomainAB]
```
(without a discriminator)
should obviously be valid
* test: add nested examples
* remove uncovered code as we don't need it
* docs: add nested example
* fix: support properly Annotated Field syntax
* support naked annotated
* fix: handle TypeError
* make error loc more explicit
* fix behaviour with basemodel instance as value
* support schema for dataclasses
* tweak examples
* refactor: context manager just around code that fails
* refactor: add docstring + tweak on `get_sub_types`
* refactor: move `get_discriminator_values` in `utils.py`
* refactor: create `MissingDiscriminator` and `InvalidDiscriminator`
* refactor: move logic in `_validate_discriminated_union`
* refactor: remove `DiscriminatedUnionConfig`
* docs: schema/schema_json
* tests: add tests with other `Literal` types
* update 3.10
* add schema docstring
* weird bug on 3.8 with `Literal[None]`
* bump to view docs & coverage
* bump to prompt tests
* move tests in dedicated file
* chore: rewording
* refactor: replace property by direct slot
* refactor: faster check
* refactor: missing discriminator
* refactor: change error to ConfigError
* refactor: use display_as_type
* fix: mypy
* fix: duplicate
* feat: handle alias
* feat: handle nested unions
* tweak first example
Co-authored-by: Samuel Colvin <s@muelcolvin.com >
2021-12-18 16:31:35 +00:00
Bas van Beek
e012089f12
Mention Python >= 3.9.2 as an alternative to typing_extensions.TypedDict ( #3374 )
...
* Mention python >= 3.9.2 as an alternative to `typing_extensions.TypedDict`
* Narrow the upper version for `LegacyTypedDict`: 3.9 -> 3.9.2
* Add an entry to `changes`
* Update pydantic/annotated_types.py
Co-authored-by: Samuel Colvin <samcolvin@gmail.com >
* Update `TypedDict` exception message in the test suite
* linting
Co-authored-by: Samuel Colvin <samcolvin@gmail.com >
Co-authored-by: Samuel Colvin <s@muelcolvin.com >
2021-12-11 22:44:09 +01:00
Eric Jolibois
ce316cd0d3
add pre-commit ( #3513 )
2021-12-11 21:13:52 +01:00
Sebastián Ramírez
61d30aed7a
✨ Add support for decimal-specific configs in Field() ( #3507 )
...
* ✨ Add support for Decimal-specific configs in Field()
* ✅ Add/update tests for condecimal and variant with Field()
* 📝 Update schema - Field() docs including Decimal-specific configs
* 📝 Add PR changes file
2021-12-11 11:21:06 +00:00
Toby Harradine
6ad80cd402
Allow None when using a Union containing Any or object ( #3452 )
...
* Add unit test for Union[int, Any]
* Allow None when Any or object is in Union
Resolves #3444
* Add changelog entry for #3444
* Prefer `is_none_type()` over `type_ is NoneType`
* fix(lint): remove useless import
Co-authored-by: PrettyWood <em.jolibois@gmail.com >
2021-12-10 18:41:37 +00:00
Nuno André
91ecfd651e
feat: Add unique items validation to constrained lists ( #2618 )
...
* Add unique items validation to constrained list
* add unique_items to field and schema
add failover for unhashable types
check keyword value to call the validator
add some tests
* update unique_items validation
Co-authored-by: Nuno André Novo <nuno.novo@forensic-security.com >
Co-authored-by: Samuel Colvin <s@muelcolvin.com >
2021-12-10 10:04:06 +00:00
Hiroshi Ogawa
d1a014542a
fix: collect only valid fields in mypy plugin ( #3247 )
...
* fix: collect only valid fields in mypy plugin
* Fix flake8 C901 in `PydanticModelTransformer.collect_fields`
2021-12-08 22:33:43 +00:00
João M. Martins
dc4710b56c
Replacing encode_default instance check with strict type check ( #3197 )
...
* Replacing encode_default instance check with strict type check
* Adding change notes
* Changing to dictionary indexing in tests
* Adding explicit Enum check and returning its value
2021-12-08 21:52:25 +00:00
David Reed
a3f180eb2b
Make SecretsSettingsSource deserialize complex types ( #3194 )
...
* Make SecretsSettingsSource deserialize complex types
* Add change notes
2021-12-08 21:50:47 +00:00
Eric Jolibois
67bfbe3f44
feat: avoid dict coercion for subclasses ( #3138 )
...
* feat: avoid dict coercion for subclasses
* docs: add change file
* add coercion example
2021-12-08 21:16:13 +00:00
Eric Jolibois
8c2c602c1b
feat: add confrozenset() ( #2672 )
...
* feat: add `confrozenset()`
* fix: add tests for allowed_schemas
2021-12-07 22:11:42 +00:00
Eric Jolibois
458f257dcb
feat: make JSON serialization of referenced pydantic models possible ( #2650 )
...
* feat: make JSON serialization of referenced pydantic models possible
* add docs
* chore: @samuelcolvin remarks
2021-12-07 22:01:11 +00:00
Eric Jolibois
c38c463137
feat: add Config.smart_union option ( #2092 )
...
* feat: add `Config.smart_union` to prevent coercion in `Union` if possible
* docs: write some documentation
* Update docs/usage/model_config.md
Thanks @djpugh
Co-authored-by: David J Pugh <6003255+djpugh@users.noreply.github.com >
* improve doc
* support 3.10
* improve smart_union
* Update docs/usage/types.md
Co-authored-by: David J Pugh <6003255+djpugh@users.noreply.github.com >
* put new sentence inside warning block
* docs: reorder
* rename is_union_origin into is_union
* inverse and condition for perf
* fix doc
Co-authored-by: David J Pugh <6003255+djpugh@users.noreply.github.com >
2021-12-07 21:58:52 +00:00
Sam McHardy
eef4ac505e
Fix missing enum extra ( #2818 )
...
* Allow passing schema_overrides to get_field_info_schema
This function was resetting schema_overrides which prevents **extras on Enum type Fields
from being saved to their json schema
* Add changes file
* Update changes/2697-sammchardy.md
Co-authored-by: Eric Jolibois <em.jolibois@gmail.com >
Co-authored-by: Sam McHardy <sam.mchardy@psma.com.au >
Co-authored-by: Eric Jolibois <em.jolibois@gmail.com >
2021-12-07 15:10:53 +01:00
Eric Jolibois
0ebea889f6
build(deps): bump requirements ( #3495 )
...
* chore(deps): bump requirements
* style: format after black bump
2021-12-07 10:36:41 +01:00
Yurii Karabas
415eb54f96
Try to evaluate forward refs after model created ( #2588 )
...
* Try to evaluate forward refs after model created
* Upadate docs and remove code duplication
* Update changes/2588-uriyyo.md
Co-authored-by: Eric Jolibois <em.jolibois@gmail.com >
* Update docs/usage/postponed_annotations.md
Co-authored-by: Eric Jolibois <em.jolibois@gmail.com >
* Remove unused import
Co-authored-by: Eric Jolibois <em.jolibois@gmail.com >
2021-12-05 14:20:48 +00:00
diabolo-dan
e71f53d2b5
Improve generic subclass support ( #2549 )
...
* Derive concrete subclasses for parameterised generics
* Resolve type issues
* Add negative assertions to generic subclass tests
* Remove incorrect subclassing of partial.
The type was incorrectly being picked up for this style of subclassing,
and it can be regardless inferred through cls.
* Apply feedback:
* Improve parameterisation explanation
* fix typos
* Alias Parameterisation type
* Apply suggestions from code review
* start docstring with newline.
* Use None as default over empty tuple.
Co-authored-by: Samuel Colvin <samcolvin@gmail.com >
* Combine _assigned_parameters cases in __paramaterized_bases__ of generics
* Add description for the `_assigned_parameters` variable.
Co-authored-by: Samuel Colvin <samcolvin@gmail.com >
Co-authored-by: Samuel Colvin <s@muelcolvin.com >
2021-12-05 13:40:23 +00:00
Eric Jolibois
a35cde90af
feat(schema): set minItems and maxItems in JSON schema for tuples ( #2497 )
...
* feat(schema): enforce length in generated JSON schema for tuple type
* docs: add change file
* docs: update documentation
* simplify a bit
* always set array
2021-12-05 13:20:07 +00:00
Yurii Karabas
ee0b2e2153
Fix issue with ClassVar parsing ( #3403 )
...
* Fix issue with ClassVar parsing
* Fix lint error
* Simplify test
* Fix condition and test
2021-11-18 23:40:15 +01:00
Eric Jolibois
28f7b1ba58
build(deps): bump requirements ( #3363 )
2021-10-27 01:12:20 +02:00