Files
RustPython/Lib
Elmir 2fa85eb86b handle type annotations in nested functions correctly (#7072)
For example in the following code:

    def foo(x: int, y: float):
        def bar(q: int):
            return q
        pass

Make sure that `foo` type annotations are correctly propogated to
it's `__annotate__` and `__annotations__` attributes.

With this chage, we'll get:

    >>>>> foo.__annotations__
    {'x': <class 'int'>, 'y': <class 'float'>}

Previously annotations where 'lost', and we would get:

    >>>>> foo.__annotations__
    {}
2026-02-11 00:08:57 +09:00
..
2025-04-11 09:30:58 +09:00
2026-02-02 00:43:07 +09:00
2025-12-24 00:13:30 +09:00
2026-02-06 12:05:17 +09:00
2026-01-17 19:22:00 +09:00
2026-02-05 00:21:34 +09:00
2026-01-18 19:16:48 +09:00
2026-01-22 16:02:41 +09:00
2026-01-20 15:29:05 +09:00
2026-01-17 19:21:11 +09:00
2025-10-22 10:57:47 +03:00
2025-04-06 17:21:28 +09:00
2026-01-18 19:56:54 +09:00
2026-01-25 00:18:55 +09:00
2026-01-17 19:21:10 +09:00
2025-08-21 13:15:39 +09:00
2025-03-20 14:28:26 +09:00
2025-03-10 11:43:53 +09:00
2026-02-02 01:20:23 +09:00
2025-01-11 18:48:27 +09:00
2025-03-10 11:43:53 +09:00
2026-01-24 16:09:40 +09:00
2025-03-10 23:13:32 -07:00
2026-01-30 16:38:36 +02:00
2025-03-20 14:33:54 +09:00
2026-01-30 19:21:10 +09:00
2026-02-02 01:20:23 +09:00
2026-01-19 00:04:06 +09:00
2025-12-30 16:35:58 +09:00
2026-01-31 10:11:58 +09:00
2025-04-21 20:45:06 -07:00
2026-01-24 00:24:12 +09:00
2025-07-25 19:08:01 +09:00
2026-01-30 16:38:36 +02:00
2026-02-08 20:36:35 +09:00
2026-01-26 10:40:22 +09:00
2026-02-01 19:14:55 +09:00
2025-04-30 14:33:52 +09:00
2025-09-15 21:36:11 +09:00
2026-01-30 07:48:29 +09:00
2026-01-20 17:32:52 +09:00
2026-02-08 16:35:56 +09:00
2026-02-08 16:35:56 +09:00
2025-09-16 09:35:08 +09:00
2026-01-31 18:40:34 +09:00
2026-02-09 12:56:53 +09:00
2026-01-21 20:14:30 +09:00
2026-01-25 00:18:55 +09:00
2026-01-25 00:18:55 +09:00
2026-01-26 10:40:22 +09:00
2026-01-23 23:57:31 +09:00
2026-02-03 22:10:31 +09:00
2020-08-11 16:38:35 -03:00
2026-02-05 19:27:10 +09:00
2026-02-06 01:14:55 +09:00
2025-07-25 10:50:17 +09:00
2020-03-01 14:36:01 -06:00
2026-02-04 18:32:45 +09:00
2024-11-11 00:17:30 +09:00
2019-07-16 19:13:07 -05:00
2026-01-21 15:10:40 +09:00
2025-04-21 21:11:42 -07:00
2025-07-17 00:04:12 +09:00
2025-12-28 15:49:10 +09:00
2024-04-26 01:39:02 +09:00
2026-01-17 19:21:10 +09:00
2024-03-22 14:54:02 +09:00
2024-03-22 14:54:02 +09:00
2025-07-20 10:37:43 +09:00
2026-01-21 03:05:05 +09:00
2026-02-04 11:16:15 +09:00
2026-01-30 19:13:59 +02:00
2025-05-07 15:01:23 +09:00
2019-06-22 13:13:34 +02:00
2026-01-22 08:02:43 +09:00
2025-07-25 10:50:41 +09:00
2026-02-06 07:45:17 +09:00
2026-01-23 23:23:02 +09:00
2026-01-20 10:59:47 +09:00
2025-04-21 08:48:38 +09:00
2026-01-30 19:21:10 +09:00
2025-08-06 10:31:55 +09:00

Standard Library for RustPython

This directory contains all of the Python files that make up the standard library for RustPython.

Most of these files are copied over from the CPython repository (the 3.7 branch), with slight modifications to allow them to work under RustPython. The current goal is to complete the standard library with as few modifications as possible. Current modifications are just temporary workarounds for bugs/missing feature within the RustPython implementation.

The first big module we are targeting is unittest, so we can leverage the CPython test suite.