Files
pydantic/tests
Eric Jolibois 6d0aa20aa6 ci: add python 3.11.0b4 (#4267)
* ci: add python 3.11.0b4

* ignore both deprecation warnings

* handle specific tuple[()] case

`tuple` and `typing.Tuple` are now the same.
But `get_args(tuple[()]) == get_args(tuple) == ()`
even though `get_args(tuple[()]).__args__ = ()` and `tuple.__args__` is not defined.

* Handle type properly

Since `type` and `Type` are now the same, it triggers `_generic_get_args`
in our custom `get_args`

```py
if hasattr(tp, '_nparams'):
    return (Any,) * tp._nparams
```

So we have `class_ is Any` for generic `type` type

* Handle enum in schemas

Enums have now a (huge) doc generated by inspect.getdoc.
It's very verbose and doesn't add anything.
I reckon it's best to keep the old generic description unless
a specific doc is provided (a test exists for this)

* add test that fails with python 3.9+

* fix test for python 3.11

* fix cython
2022-07-27 10:11:19 +01:00
..
2022-01-02 13:53:45 +00:00
2017-05-03 22:23:41 +01:00
2020-03-21 18:14:17 +00:00
2022-07-06 08:52:01 +02:00
2019-06-21 12:32:03 +01:00
2022-07-06 08:52:01 +02:00
2022-01-02 13:53:45 +00:00
2022-07-06 08:52:01 +02:00
2022-07-06 08:52:01 +02:00
2022-07-06 08:52:01 +02:00
2021-12-18 20:56:14 +00:00
2022-07-06 08:52:01 +02:00