Campbell Barton
08dbc4f996
PyAPI: use postponed annotations to support Python 3.10
...
Support Python 3.10a5 or 3.9x with support explicitly enabled.
- Enable Python's postponed annotations for Blender's RNA classes
types registered on startup.
- Using postponed annotations has implications for how they are defined,
since they must evaluate in the modules name-space instead of the
classes name-space. See changes to annotations in `release/scripts`.
- Use `from __future__ import annotations` at the top of the module
to ensure the script will run with Python 3.10.
- Old logic is kept since it could be used if PEP-649 is supported.
Resolves T83626
Ref D10474
2021-02-21 22:37:53 +11:00
..
2020-09-30 20:11:06 +10:00
2020-08-07 09:50:34 +02:00
2020-09-30 20:11:06 +10:00
2020-08-07 09:50:34 +02:00
2020-10-10 22:04:51 +11:00
2020-08-07 09:50:34 +02:00
2021-02-05 16:23:34 +11:00
2020-08-07 09:50:34 +02:00
2020-08-20 16:10:13 +10:00
2020-08-07 09:50:34 +02:00
2020-09-30 20:11:06 +10:00
2020-08-07 09:50:34 +02:00
2020-09-30 20:11:06 +10:00
2020-08-07 09:50:34 +02:00
2020-09-30 20:11:06 +10:00
2020-08-07 09:50:34 +02:00
2020-09-30 20:11:06 +10:00
2020-08-07 09:50:34 +02:00
2020-10-10 22:04:51 +11:00
2020-08-07 09:50:34 +02:00
2020-08-20 16:10:13 +10:00
2020-08-07 09:50:34 +02:00
2021-02-13 23:09:55 +11:00
2020-08-07 09:50:34 +02:00
2020-09-30 20:11:06 +10:00
2020-08-07 09:50:34 +02:00
2021-01-29 14:17:49 +01:00
2020-08-07 09:50:34 +02:00
2021-02-13 23:09:55 +11:00
2021-02-12 08:08:15 +11:00
2021-02-13 23:09:55 +11:00
2020-08-07 09:50:34 +02:00
2020-04-03 18:25:52 +02:00
2020-08-07 09:50:34 +02:00
2021-02-05 16:23:34 +11:00
2020-08-17 18:53:21 +10:00
2021-02-13 23:09:55 +11:00
2020-02-20 15:40:05 +11:00
2020-08-07 09:50:34 +02:00
2021-02-13 23:09:55 +11:00
2020-06-18 15:49:10 +10:00
2020-08-07 09:50:34 +02:00
2021-02-13 23:09:55 +11:00
2020-08-07 09:50:34 +02:00
2021-02-13 23:09:55 +11:00
2020-08-07 09:50:34 +02:00
2021-02-13 23:09:55 +11:00
2020-08-07 09:50:34 +02:00
2019-04-17 06:21:24 +02:00
2020-08-07 09:50:34 +02:00
2021-02-21 22:37:53 +11:00
2021-02-20 16:19:33 +11:00
2020-10-15 19:00:17 +11:00
2020-08-07 09:50:34 +02:00
2020-08-20 16:10:13 +10:00
2020-08-20 16:10:13 +10:00
2020-09-04 21:04:16 +02:00
2020-08-20 16:10:13 +10:00
2020-08-07 09:50:34 +02:00
2020-10-15 19:00:17 +11:00
2020-09-09 11:10:38 +02:00
2020-12-22 14:05:49 +01:00
2020-08-07 09:50:34 +02:00
2020-10-19 08:12:33 -07:00
2020-08-07 09:50:34 +02:00
2021-01-05 23:04:51 +11:00
2020-09-02 15:58:44 +10:00
2021-02-21 22:37:53 +11:00
2021-02-19 22:12:41 +11:00
2021-02-13 23:09:55 +11:00
2020-08-07 09:50:34 +02:00
2020-09-29 15:07:41 -04:00
2020-08-07 09:50:34 +02:00
2020-11-06 12:32:54 +11:00
2020-08-07 09:50:34 +02:00
2021-02-13 23:09:55 +11:00
2020-11-02 19:33:32 +11:00
2020-12-08 20:48:11 +11:00
2019-05-01 11:13:14 +10:00