django-rest-framework/docs
Bruno Alla b25028ac8f
Add support for Python 3.13 (#9527)
* Add support for Python 3.13

* Fix extracting tox env with -dev Python versions

* Fix view description inspection in Python 3.13

Python 3.13 introduced docstrings for None: https://github.com/python/cpython/pull/117813

In Python 3.12, this is an empty string:

```
 ➜ python3.12
Python 3.12.6 (main, Sep 10 2024, 19:06:17) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> d = None
>>> d.__doc__
>>>
```

In Python 3.13, it's no longer empty:

```
 ➜ python3.13
Python 3.13.0rc2+ (heads/3.13:660baa1, Sep 10 2024, 18:57:50) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> d = None
>>> d.__doc__
'The type of the None singleton.'
>>>
```

Adding a check in the inspector that get the view description out the view function docstring to catch this edge case.
2024-09-11 15:39:52 +06:00
..
api-guide Docs: move path converter into a separate section (#9524) 2024-09-10 17:29:31 +06:00
community Update jobs.md (#9480) 2024-08-26 10:28:15 +01:00
img Add Zuplo to sponsors (#9460) 2024-07-05 16:56:58 +01:00
topics Update browsable-api.md (#9509) 2024-08-27 13:44:04 +06:00
tutorial docs: Correct some evaluation results and a httpie option in Tutorial1 (#9421) 2024-06-02 10:14:37 +06:00
CNAME Include CNAME file 2014-11-25 16:01:32 +00:00
index.md Add support for Python 3.13 (#9527) 2024-09-11 15:39:52 +06:00