Miss Islington (bot)
fc01844019
[3.12] gh-70764: inspect.getclosurevars now identifies global variables with LOAD_GLOBAL (GH-120143) ( #126460 )
...
gh-70764: inspect.getclosurevars now identifies global variables with LOAD_GLOBAL (GH-120143)
(cherry picked from commit 83ba8c2bba
)
Co-authored-by: blhsing <blhsing@gmail.com>
2024-11-06 00:12:08 +00:00
Miss Islington (bot)
030b48c27a
[3.12] gh-116789: Add more tests for inspect.getmembers
(GH-116802) ( #123130 )
...
gh-116789: Add more tests for `inspect.getmembers` (GH-116802)
(cherry picked from commit c15bfa9a71
)
Co-authored-by: sobolevn <mail@sobolevn.me>
2024-08-18 19:18:53 +03:00
Miss Islington (bot)
f03f4b15ef
[3.12] Add some more edge-case tests for inspect.get_annotations
with eval_str=True
(GH-120550) ( #120552 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-06-15 13:10:01 +00:00
Miss Islington (bot)
183445338d
[3.12] gh-114053: Fix bad interaction of PEP 695, PEP 563 and inspect.get_annotations
(GH-120270) ( #120475 )
...
gh-114053: Fix bad interaction of PEP 695, PEP 563 and `inspect.get_annotations` (GH-120270)
(cherry picked from commit 42351c3b9a
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-06-13 21:35:21 +00:00
Nikita Sobolev
1e7903d549
[3.12] gh-120200: Fix inspect.iscoroutinefunction(inspect) is True
corner case (GH-120214) ( #120239 )
...
* [3.12] gh-120200: Fix `inspect.iscoroutinefunction(inspect) is True` corner case (GH-120214)
(cherry picked from commit 10fb1b8f36
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-06-07 16:41:45 +00:00
Miss Islington (bot)
35649dfe05
[3.12] gh-87106: Fix inspect.signature.bind() handling of positional-only arguments with **kwargs (GH-103404) (GH-118984)
...
(cherry picked from commit 9c15202441
)
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
2024-05-13 08:29:47 +00:00
Miss Islington (bot)
1b12ad5970
[3.12] gh-118404: Fix inspect.signature() for non-comparable callables (GH-118405) (GH-118424)
...
(cherry picked from commit 11f8348d78
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-04-30 12:33:54 +00:00
Miss Islington (bot)
0691bd860d
[3.12] gh-118013: Use weakrefs for the cache key in inspect._shadowed_dict
(GH-118202) ( #118232 )
...
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2024-04-24 15:27:08 +00:00
Nikita Sobolev
2dbc77e1ec
[3.12] gh-116780: Fix test_inspect
in -OO
mode (GH-116788) ( #116799 )
2024-03-17 13:33:38 +03:00
Miss Islington (bot)
c4a22ad899
[3.12] gh-116785: Fix direct invocation of test_inspect
(GH-116787) ( #116794 )
...
gh-116785: Fix direct invocation of `test_inspect` (GH-116787)
(cherry picked from commit 66fb613d90
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2024-03-14 10:20:20 +00:00
Miss Islington (bot)
d341098c59
[3.12] gh-101293: Fix support of custom callables and types in inspect.Signature.from_callable() (GH-115530) (GH-116198)
...
Support callables with the __call__() method and types with
__new__() and __init__() methods set to class methods, static
methods, bound methods, partial functions, and other types of
methods and descriptors.
Add tests for numerous types of callables and descriptors.
(cherry picked from commit 59167c962e
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-03-01 12:59:49 +00:00
Miss Islington (bot)
418e720413
[3.12] gh-112006: Fix inspect.unwrap() for types where __wrapped__ is a data descriptor (GH-115540) (GH-115966)
...
(cherry picked from commit 68c79d21fa
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-02-27 18:32:34 +00:00
Serhiy Storchaka
fc4d2c3dc6
[3.12] gh-81682: Fix test failures when CPython is built without docstrings (GH-113410) (GH-113429)
...
(cherry picked from commit 4e5b27e6a3
)
2023-12-23 11:50:01 +00:00
Miss Islington (bot)
7eff607deb
[3.12] gh-111058: Change coro.cr_frame/gen.gi_frame to be None for a closed coroutine/generator. (GH-112428) ( #112589 )
2023-12-01 14:13:15 +00:00
Miss Islington (bot)
378a96e361
[3.12] gh-112001: Fix test_builtins_have_signatures in test_inspect (GH-112002) (GH-112003)
...
(cherry picked from commit 40752c1c1e
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2023-11-12 13:20:36 +00:00
Nikita Sobolev
0102faf0ca
[3.12] gh-108303: Move all inspect test files to test_inspect/
(GH-109607) ( #110732 )
...
(cherry picked from commit 732532b0af
)
2023-10-13 19:05:03 +02:00