cpython/Lib/test/test_inspect
Miss Islington (bot) 2b4c31d87d
[3.13] gh-122981: Fix inspect.getsource() for generated classes with Python base classes (GH-123001) (#123182)
gh-122981: Fix inspect.getsource() for generated classes with Python base classes (GH-123001)

Look up __firstlineno__ only in the class' dict, without searching in
base classes.
(cherry picked from commit f88c14d412)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-09-02 13:07:08 +02:00
..
__init__.py
inspect_fodder.py
inspect_fodder2.py [3.13] gh-122981: Fix inspect.getsource() for generated classes with Python base classes (GH-123001) (#123182) 2024-09-02 13:07:08 +02:00
inspect_stock_annotations.py
inspect_stringized_annotations.py
inspect_stringized_annotations_2.py
inspect_stringized_annotations_pep695.py [3.13] Add some more edge-case tests for `inspect.get_annotations` with `eval_str=True` (GH-120550) (#120551) 2024-06-15 13:16:40 +00:00
test_inspect.py [3.13] gh-122981: Fix inspect.getsource() for generated classes with Python base classes (GH-123001) (#123182) 2024-09-02 13:07:08 +02:00